Modify

Opened 5 years ago

Closed 5 years ago

#1663 closed defect (fixed)

Nullpointer after lakewalker

Reported by: osm@… Owned by: framm
Priority: major 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 osm@… 5 years ago.
patch fixing the nullpointer crash

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by osm@…

patch fixing the nullpointer crash

comment:1 Changed 5 years ago by osm@…

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 Changed 5 years ago by framm

  • Resolution set to fixed
  • Status changed from new to closed

applied in lakewalker build 11920

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.