Ticket #5153: validator-dupcrash.patch

File validator-dupcrash.patch, 725 bytes (added by bilbo, 15 years ago)

Patch to fix the bug

  • src/org/openstreetmap/josm/plugins/validator/tests/DuplicateWay.java

     
    166166        //Note: nodes are not deleted, these can be detected and deleted at next pass
    167167        ways.remove(wayToKeep);
    168168        commands.add(new DeleteCommand(ways));
    169         Main.main.undoRedo.add(new SequenceCommand(tr("Delete duplicate ways"), commands));
    170         return null;
     169        return new SequenceCommand(tr("Delete duplicate ways"), commands);
    171170    }
    172171
    173172    @Override