Changeset 20696 in osm for applications/editors


Ignore:
Timestamp:
2010-03-27T12:21:22+01:00 (15 years ago)
Author:
hampelratte
Message:

#4806 NPE in Openstreetbugs on MacOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java

    r20682 r20696  
    437437        if(newSelection.size() == 1 && newSelection.iterator().next() instanceof Node) {
    438438            Node selectedNode = (Node) newSelection.iterator().next();
    439             if(osbPlugin.getLayer().getDataSet().getNodes().contains(selectedNode)) {
     439            if(osbPlugin.getLayer() != null && osbPlugin.getLayer().getDataSet() != null
     440                    && osbPlugin.getLayer().getDataSet().getNodes() != null
     441                    && osbPlugin.getLayer().getDataSet().getNodes().contains(selectedNode))
     442            {
    440443                setSelectedNode(selectedNode);
    441444            } else {
Note: See TracChangeset for help on using the changeset viewer.