Changeset 22466 in osm for applications/editors


Ignore:
Timestamp:
2010-07-28T12:35:25+02:00 (14 years ago)
Author:
hampelratte
Message:

Ticket #5270 fixed NPE for right click

File:
1 edited

Legend:

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

    r22434 r22466  
    327327            int selectedRow = bugList.locationToIndex(e.getPoint());
    328328            bugList.setSelectedIndex(selectedRow);
    329             PopupFactory.createPopup(getSelectedNode(), this).show(e.getComponent(), e.getX(), e.getY());
     329            Node selectedNode = getSelectedNode();
     330            if(selectedNode != null) {
     331                PopupFactory.createPopup(selectedNode, this).show(e.getComponent(), e.getX(), e.getY());
     332            }
    330333        }
    331334    }
Note: See TracChangeset for help on using the changeset viewer.