Changeset 8950 in josm for trunk/src/org


Ignore:
Timestamp:
2015-10-26T01:35:06+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #12011 - add robustness

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java

    r8882 r8950  
    550550         */
    551551        static boolean connection(Environment e) {
    552             return e.osm instanceof Node && ((Node) e.osm).isConnectionNode();
     552            return e.osm instanceof Node && e.osm.getDataSet() != null && ((Node) e.osm).isConnectionNode();
    553553        }
    554554
Note: See TracChangeset for help on using the changeset viewer.