Changeset 12121 in josm


Ignore:
Timestamp:
2017-05-11T20:40:17+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #14762 - fix NPE (for good?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/FilterMatcher.java

    r11997 r12121  
    225225    private static FilterType test(List<FilterInfo> filters, OsmPrimitive primitive, boolean hidden) {
    226226
    227         if (primitive.isIncomplete() || (Main.map != null && Main.map.mapMode.getPreservedPrimitives().contains(primitive)))
     227        if (primitive.isIncomplete() ||
     228                (Main.map != null && Main.map.mapMode != null && Main.map.mapMode.getPreservedPrimitives().contains(primitive)))
    228229            return FilterType.NOT_FILTERED;
    229230
Note: See TracChangeset for help on using the changeset viewer.