Changeset 13046 in josm for trunk/src/org


Ignore:
Timestamp:
2017-10-28T15:58:00+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #15494 - NPE

File:
1 edited

Legend:

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

    r12656 r13046  
    769769
    770770        static boolean selected(Environment e) { // NO_UCD (unused code)
    771             Cascade c = e.mc.getCascade(e.layer);
    772             c.setDefaultSelectedHandling(false);
     771            if (e.mc != null) {
     772                e.mc.getCascade(e.layer).setDefaultSelectedHandling(false);
     773            }
    773774            return e.osm.isSelected();
    774775        }
Note: See TracChangeset for help on using the changeset viewer.