Modify

Opened 16 years ago

Closed 15 years ago

#1663 closed defect (fixed)

Nullpointer after lakewalker

Reported by: stephankn Owned by: framm
Priority: major Milestone:
Component: unspecified Version: latest
Keywords: Cc:

Description

Load a Landsat WMS. Then click with lakewalker on a lake. After lakewalker finished processing the NPE occurs. Happens every time.

Tried already the most current build from svn, no change with this. Build is based on 1044, no custom modifications.

Development version. Unknown revision.
java.lang.NullPointerException

at org.openstreetmap.josm.data.osm.visitor.SimplePaintVisitor.visitVirtual(SimplePaintVisitor.java:183)
at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.visitAll(MapPaintVisitor.java:376)
at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(OsmDataLayer.java:173)
at org.openstreetmap.josm.gui.MapView.paint(MapView.java:283)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (1)

lakewalker_exception_1663.patch (1.7 KB ) - added by stephankn 15 years ago.
patch fixing the nullpointer crash

Download all attachments as: .zip

Change History (3)

by stephankn, 15 years ago

patch fixing the nullpointer crash

comment:1 by stephankn, 15 years ago

I tracked down the problem. If the image could not be read it returned a nullpointer. Lakewalker then inserted a new way containing one "null" node. That crashed josm.
Please submit attached patch.

comment:2 by framm, 15 years ago

Resolution: fixed
Status: newclosed

applied in lakewalker build 11920

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.