mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +01:00
Avoid trap when region data not loaded and processing visible/hidden
regions
This commit is contained in:
parent
df81b096d7
commit
8fe802f114
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user