Changeset 3172 in josm for trunk


Ignore:
Timestamp:
2010-04-06T20:47:46+02:00 (14 years ago)
Author:
bastiK
Message:

make assertions work (see #3892)

File:
1 edited

Legend:

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

    r2990 r3172  
    9292        for (Node n : nodes) {
    9393            // in case #3892 happens again
    94             //
    95             assert n!= null : "null detected in node list";
    96             assert n.getEastNorth() != null : "unexpected null value for n.getEastNorth(). id of n is" + n.getUniqueId();
     94            if (n!= null)
     95                throw new AssertionError("null detected in node list");
     96            if (n.getEastNorth() != null)
     97                throw new AssertionError("unexpected null value for n.getEastNorth(). id of n is" + n.getUniqueId());
    9798
    9899            n.setEastNorth(n.getEastNorth().add(x, y));
Note: See TracChangeset for help on using the changeset viewer.