Changeset 35082 in osm for applications/editors/josm/plugins/reverter/src
- Timestamp:
- 2019-08-11T14:00:33+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/MultiOsmReader.java
r35078 r35082 44 44 protected Node parseNode() throws XMLStreamException { 45 45 Node node = super.parseNode(); 46 if (callback != null) { 47 callback.primitiveParsed(node .getPrimitiveId());46 if (callback != null && node != null) { 47 callback.primitiveParsed(node); 48 48 } 49 49 return node; … … 52 52 protected Way parseWay() throws XMLStreamException { 53 53 Way way = super.parseWay(); 54 if (callback != null) { 55 callback.primitiveParsed(way .getPrimitiveId());54 if (callback != null && way != null) { 55 callback.primitiveParsed(way); 56 56 } 57 57 return way; … … 60 60 protected Relation parseRelation() throws XMLStreamException { 61 61 Relation relation = super.parseRelation(); 62 if (callback != null) { 63 callback.primitiveParsed(relation .getPrimitiveId());62 if (callback != null && relation != null) { 63 callback.primitiveParsed(relation); 64 64 } 65 65 return relation;
Note:
See TracChangeset
for help on using the changeset viewer.
