Ignore:
Timestamp:
2017-04-24T21:59:15+02:00 (2 years ago)
Author:
Don-vip
Message:

see #5144 - fix NPE

File:
1 edited

Legend:

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

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