catch NPE from #3398

This commit is contained in:
sonora 2017-01-09 21:39:39 +01:00
parent 0ee28c19cc
commit f0c2ac668f

View file

@ -122,7 +122,7 @@ public class PoiFiltersHelper {
private PoiUIFilter getFilterById(String filterId, PoiUIFilter... filters) {
for (PoiUIFilter pf : filters) {
if (pf.getFilterId().equals(filterId)) {
if (pf.getFilterId() != null && filterId != null && pf.getFilterId().equals(filterId)) {
return pf;
}
}