Modify

Opened 17 years ago

Closed 17 years ago

#751 closed defect (duplicate)

NPE when I try to load OSM data after loading a GPX file

Reported by: bjornmu Owned by: framm
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

Just got a new box with Fedora 8. Haven't used JOSM for a while, so downloaded the latest and tried to work with a GPX file. BOOM!


Path: josm
URL: http://www.openstreetmap.de/svn/josm
Repository Root: http://www.openstreetmap.de/svn/josm
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 635
Node Kind: directory
Last Changed Author: framm
Last Changed Rev: 635
Last Changed Date: 2008-05-12 16:53:28 +0200 (Mon, 12 May 2008)

java.lang.NullPointerException

at org.openstreetmap.josm.data.osm.visitor.SimplePaintVisitor.onScreen(SimplePaintVisitor.java:227)
at org.openstreetmap.josm.data.osm.visitor.SimplePaintVisitor.drawSegment(SimplePaintVisitor.java:208)
at org.openstreetmap.josm.data.osm.visitor.SimplePaintVisitor.visit(SimplePaintVisitor.java:152)
at org.openstreetmap.josm.data.osm.Way.visit(Way.java:48)
at org.openstreetmap.josm.data.osm.visitor.SimplePaintVisitor.visitAll(SimplePaintVisitor.java:87)
at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(OsmDataLayer.java:173)
at org.openstreetmap.josm.gui.MapView.paint(MapView.java:217)
at javax.swing.JComponent.paintChildren(JComponent.java:876)
at javax.swing.JComponent.paint(JComponent.java:1048)
at javax.swing.JComponent.paintChildren(JComponent.java:876)
at javax.swing.JComponent.paint(JComponent.java:1048)
at javax.swing.JComponent.paintChildren(JComponent.java:876)
at javax.swing.JComponent.paint(JComponent.java:1048)
at javax.swing.JComponent.paintChildren(JComponent.java:876)
at javax.swing.JComponent.paint(JComponent.java:1048)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:582)
at javax.swing.JComponent.paintChildren(JComponent.java:876)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5166)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1412)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1343)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:319)
at javax.swing.RepaintManager.paint(RepaintManager.java:1146)
at javax.swing.JComponent.paint(JComponent.java:1025)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115)
at java.awt.Container.paint(Container.java:1849)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:752)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:697)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677)
at javax.swing.RepaintManager.access$700(RepaintManager.java:58)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1551)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:227)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:603)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:276)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)


Attachments (0)

Change History (2)

comment:1 by dnaber, 17 years ago

Also caused by drawing to a BufferedImage, as the NPE when drawing segment numbers. I don't have a fix yet.

comment:2 by anonymous, 17 years ago

Resolution: duplicate
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.