Changeset 35082 in osm
- Timestamp:
- 2019-08-11T14:00:33+02:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/reverter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/build.xml
r35080 r35082 2 2 <project name="reverter" default="dist" basedir="."> 3 3 <!-- enter the SVN commit message --> 4 <property name="commit.message" value="Reverter: fix #josm16508 use mulit-fetch API for objects history"/>4 <property name="commit.message" value="Reverter: fix possible NPE"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 6 <property name="plugin.main.version" value="14946"/> -
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.