Opened 7 months ago

Closed 7 months ago

Last modified 6 months ago

#15315 closed defect (fixed)

NPE in eastNorth

Reported by: naoliv Owned by: team
Priority: normal Milestone: 17.09
Component: Core Version:
Keywords: osc osmChange Cc:


I am seeing a lot of this when trying to zoom the map (and then I get only a gray screen):

java.lang.NullPointerException: eastNorth
	at java.base/java.util.Objects.requireNonNull(
	at org.openstreetmap.josm.gui.MapViewState$MapViewEastNorthPoint.<init>(
	at org.openstreetmap.josm.gui.MapViewState.getPointFor(
	at org.openstreetmap.josm.gui.draw.MapViewPath.lineTo(
	at org.openstreetmap.josm.gui.draw.MapViewPath.lineTo(
	at org.openstreetmap.josm.gui.draw.MapViewPath.appendWay(
	at org.openstreetmap.josm.gui.draw.MapViewPath.append(
	at org.openstreetmap.josm.gui.mappaint.styleelement.TextElement.paintPrimitive(
	at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(
	at org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable$CompatibilityModeLayerPainter.paint(
	at org.openstreetmap.josm.gui.MapView.paintLayer(
	at org.openstreetmap.josm.gui.MapView.drawMapContent(
	at org.openstreetmap.josm.gui.MapView.paint(
	at java.desktop/javax.swing.JComponent.paintChildren(
	at java.desktop/javax.swing.JComponent.paint(
	at java.desktop/javax.swing.JComponent.paintToOffscreen(
	at java.desktop/javax.swing.BufferStrategyPaintManager.paint(
	at java.desktop/javax.swing.RepaintManager.paint(
	at java.desktop/javax.swing.JComponent._paintImmediately(
	at java.desktop/javax.swing.JComponent.paintImmediately(
	at java.desktop/javax.swing.RepaintManager$
	at java.desktop/javax.swing.RepaintManager$
	at java.base/ Method)
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(
	at java.desktop/javax.swing.RepaintManager.access$1200(
	at java.desktop/javax.swing.RepaintManager$
	at java.desktop/java.awt.event.InvocationEvent.dispatch(
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(
	at java.desktop/java.awt.EventQueue.access$500(
	at java.desktop/java.awt.EventQueue$
	at java.desktop/java.awt.EventQueue$
	at java.base/ Method)
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/java.awt.EventQueue.dispatchEvent(
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/


Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-09-15 01:35:48 +0200 (Fri, 15 Sep 2017)
Build-Date:2017-09-15 01:32:04

Identification: JOSM/1.5 (12866 pt_BR) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 637 MB / 3072 MB (311 MB allocated, but free)
Java version: 9-Debian+0-9b181-4, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-9-jre:amd64-9~b181-4
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13
VM arguments: [, -Dawt.useSystemAAFontSettings=on]

Attachments (0)

Change History (6)

comment:1 Changed 7 months ago by bastiK

What kind of .osm data did you open? I'm assuming it is not a simple download from the server?

comment:2 Changed 7 months ago by naoliv

I was viewing some osmChange files.
For example, downloaded, renamed to something.osc, opened in JOSM, FileUpdate data to have the complete objects.
The conflicts I ignored (I didn't solve any of them), since I was only needing to have an overview of what happened in some changesets.

comment:3 Changed 7 months ago by bastiK

Resolution: fixed
Status: newclosed

In 12876/josm:

fixed #15315 - NPE in eastNorth

comment:4 Changed 7 months ago by bastiK

Keywords: osc osmChange added
Milestone: 17.09

comment:5 Changed 7 months ago by Don-vip

In 12877/josm:

see #15315 - disable AvoidCatchingNPE

comment:6 Changed 6 months ago by bastiK

In 13033/josm:

fixed #15466 - Data filtering is not working properly for nodes (see #15315)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.