Avoid trap when region data not loaded and processing visible/hidden
regions
This commit is contained in:
parent
612f381777
commit
472129b11f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
/* 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> idlist = configuration.getStrings("visibleregions", null);
|
||||||
List<String> hidlist = configuration.getStrings("hiddenregions", null);
|
List<String> hidlist = configuration.getStrings("hiddenregions", null);
|
||||||
if((idlist != null) || (hidlist != null)) {
|
if((regionData != null) && ((idlist != null) || (hidlist != null))) {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
HashSet<String> ids = new HashSet<String>((Collection<? extends String>) regionData.keySet());
|
HashSet<String> ids = new HashSet<String>((Collection<? extends String>) regionData.keySet());
|
||||||
for(String id : ids) {
|
for(String id : ids) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue