Ignore:
Timestamp:
2013-05-09T03:29:40+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8692 - Handle null DeleteCommands in JoinAreaAction and ImproveWayAccuracyAction

File:
1 edited

Legend:

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

    r5903 r5947  
    507507        // Delete the discarded inner ways
    508508        if (discardedWays.size() > 0) {
    509             cmds.add(DeleteCommand.delete(Main.map.mapView.getEditLayer(), discardedWays, true));
    510             commitCommands(marktr("Delete Ways that are not part of an inner multipolygon"));
     509            Command deleteCmd = DeleteCommand.delete(Main.map.mapView.getEditLayer(), discardedWays, true);
     510            if (deleteCmd != null) {
     511                cmds.add(deleteCmd);
     512                commitCommands(marktr("Delete Ways that are not part of an inner multipolygon"));
     513            }
    511514        }
    512515
Note: See TracChangeset for help on using the changeset viewer.