diff --git a/src/main/java/org/dynmap/regions/RegionsComponent.java b/src/main/java/org/dynmap/regions/RegionsComponent.java index 8817cef1..9e73c25b 100644 --- a/src/main/java/org/dynmap/regions/RegionsComponent.java +++ b/src/main/java/org/dynmap/regions/RegionsComponent.java @@ -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 idlist = configuration.getStrings("visibleregions", null); List hidlist = configuration.getStrings("hiddenregions", null); - if((idlist != null) || (hidlist != null)) { + if((regionData != null) && ((idlist != null) || (hidlist != null))) { @SuppressWarnings("unchecked") HashSet ids = new HashSet((Collection) regionData.keySet()); for(String id : ids) {