Changeset 34263 in osm for applications/editors/josm/plugins/utilsplugin2/src/org
- Timestamp:
- 2018-06-10T18:30:24+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/replacegeometry/ReplaceMembershipAction.java
r33579 r34263 43 43 44 44 final ReplaceGeometryCommand command = getReplaceGeometryCommand(firstObject, secondObject); 45 final int affectedRelations = command .getChildren().size();45 final int affectedRelations = command != null ? command.getChildren().size() : 0; 46 46 if (affectedRelations > 0) { 47 47 MainApplication.undoRedo.add(command); … … 75 75 } 76 76 77 return new ReplaceGeometryCommand(tr("Replace Membership"), commands);77 return commands.isEmpty() ? null : new ReplaceGeometryCommand(tr("Replace Membership"), commands); 78 78 } 79 79
Note:
See TracChangeset
for help on using the changeset viewer.