Ignore:
Timestamp:
2009-11-10T22:12:49+01:00 (10 years ago)
Author:
Gubaer
Message:

see #3892: can't reproduce but added two assert statement in case it happens again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r2025 r2435  
    22package org.openstreetmap.josm.command;
    33
     4import static org.openstreetmap.josm.tools.I18n.tr;
    45import static org.openstreetmap.josm.tools.I18n.trn;
    56
     
    9293    @Override public boolean executeCommand() {
    9394        for (Node n : nodes) {
     95            // in case #3892 happens again
     96            //
     97            assert n!= null : tr("null detected in node list");
     98            assert n.getEastNorth() != null : tr("unexpected null value for n.getEastNorth(). id of n is", n.getUniqueId());
    9499            n.setEastNorth(n.getEastNorth().add(x, y));
    95100            n.setModified(true);
Note: See TracChangeset for help on using the changeset viewer.