Changeset 5223 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2012-05-08T02:20:58+02:00 (12 years ago)
Author:
Don-vip
Message:

should fix #7620 - NPE in unknown conditions (not reproduced)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r5191 r5223  
    151151
    152152        // update selection to reflect which way being modified
    153         if (currentBaseNode != null && getCurrentDataSet().getSelected().isEmpty() == false) {
     153        if (currentBaseNode != null && getCurrentDataSet() != null && getCurrentDataSet().getSelected().isEmpty() == false) {
    154154            Way continueFrom = getWayForNode(currentBaseNode);
    155155            if (alt && continueFrom != null && (!currentBaseNode.isSelected() || continueFrom.isSelected())) {
Note: See TracChangeset for help on using the changeset viewer.