Changeset 7714 in josm
- Timestamp:
- 2014-11-07T20:12:40+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r7575 r7714 947 947 */ 948 948 public OsmPrimitive getPrimitiveById(PrimitiveId primitiveId) { 949 return primitive sMap.get(primitiveId);949 return primitiveId != null ? primitivesMap.get(primitiveId) : null; 950 950 } 951 951 … … 957 957 private OsmPrimitive getPrimitiveByIdChecked(PrimitiveId primitiveId) { 958 958 OsmPrimitive result = getPrimitiveById(primitiveId); 959 if (result == null ) {959 if (result == null && primitiveId != null) { 960 960 Main.warn(tr("JOSM expected to find primitive [{0} {1}] in dataset but it is not there. Please report this " 961 961 + "at {2}. This is not a critical error, it should be safe to continue in your work.", -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r7483 r7714 475 475 476 476 // This will cycle through the available items. 477 if(firstSelected == null) { 478 ds.addSelected(firstItem); 479 } else { 477 if (firstSelected != null) { 480 478 ds.clearSelection(firstSelected); 481 479 if(nextSelected != null) { 482 480 ds.addSelected(nextSelected); 483 481 } 482 } else if (firstItem != null) { 483 ds.addSelected(firstItem); 484 484 } 485 485 }
Note: See TracChangeset
for help on using the changeset viewer.