Changeset 11141 in josm
- Timestamp:
- 2016-10-17T22:51:04+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapViewState.java
r11026 r11141 11 11 import java.awt.geom.Rectangle2D; 12 12 import java.io.Serializable; 13 import java.util.Objects; 13 14 14 15 import javax.swing.JComponent; … … 193 194 */ 194 195 public MapViewPoint getPointFor(Node node) { 195 return getPointFor(node.getEastNorth(getProjection())); 196 try { 197 return getPointFor(node.getEastNorth(getProjection())); 198 } catch (RuntimeException e) { 199 throw BugReport.intercept(e).put("node", node); 200 } 196 201 } 197 202 … … 583 588 584 589 MapViewEastNorthPoint(EastNorth eastNorth) { 585 CheckParameterUtil.ensureParameterNotNull(eastNorth, "eastNorth"); 586 this.eastNorth = eastNorth; 590 this.eastNorth = Objects.requireNonNull(eastNorth, "eastNorth"); 587 591 } 588 592
Note:
See TracChangeset
for help on using the changeset viewer.