Avoid trap when region data not loaded and processing visible/hidden

regions
This commit is contained in:
Mike Primm 2011-09-26 09:09:44 -05:00
parent df81b096d7
commit 8fe802f114

View File

@ -108,7 +108,7 @@ public class RegionsComponent extends ClientComponent {
/* See if we have explicit list of regions to report - limit to this list if we do */
List<String> idlist = configuration.getStrings("visibleregions", null);
List<String> hidlist = configuration.getStrings("hiddenregions", null);
if((idlist != null) || (hidlist != null)) {
if((regionData != null) && ((idlist != null) || (hidlist != null))) {
@SuppressWarnings("unchecked")
HashSet<String> ids = new HashSet<String>((Collection<? extends String>) regionData.keySet());
for(String id : ids) {