Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3946 closed defect (duplicate)

NPE - While undoing terracer action

Reported by: Ldp Owned by: zerebubuth@…
Priority: normal Milestone:
Component: Plugin terracer Version: latest
Keywords: Cc:

Description

Select building outline, make a terrace (I had 4-10 even), and associate with a nearby street. The action is performed and new building outlines are created. Undo the terrace action, and get an NPE (see below).

Now, if I make the terrace, reverse it, and then undo those 2 actions, it works ok.

Build-Date: 2009-11-15 20:44:39		
Revision: 2462
Is-Local-Build: true

Memory Usage: 82 MB / 1016 MB (8 MB allocated, but free)
Java version: 1.6.0_17

Plugins: AddrInterpolationremotecontrolterracerutilspluginvalidatorwmsplugin
Plugin AddrInterpolation Version: 18503
Plugin remotecontrol Version: 18503
Plugin terracer Version: 17874
Plugin utilsplugin Version: 18621
Plugin validator Version: 18623
Plugin wmsplugin Version: 18625


java.lang.NullPointerException
	at org.openstreetmap.josm.gui.DefaultNameFormatter.format(DefaultNameFormatter.java:140)
	at org.openstreetmap.josm.data.osm.Way.getDisplayName(Way.java:352)
	at org.openstreetmap.josm.gui.OsmPrimitivRenderer.renderer(OsmPrimitivRenderer.java:64)
	at org.openstreetmap.josm.gui.OsmPrimitivRenderer.getListCellRendererComponent(OsmPrimitivRenderer.java:44)
	at javax.swing.plaf.basic.BasicListUI.paintCell(Unknown Source)
	at javax.swing.plaf.basic.BasicListUI.paintImpl(Unknown Source)
	at javax.swing.plaf.basic.BasicListUI.paint(Unknown Source)
	at javax.swing.plaf.ComponentUI.update(Unknown Source)
	at javax.swing.JComponent.paintComponent(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.JViewport.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.JComponent.paintChildren(Unknown Source)
	at org.openstreetmap.josm.gui.MultiSplitPane.paintChildren(MultiSplitPane.java:205)
	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.JSplitPane.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.paintToOffscreen(Unknown Source)
	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
	at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
	at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
	at javax.swing.RepaintManager.paint(Unknown Source)
	at javax.swing.JComponent._paintImmediately(Unknown Source)
	at javax.swing.JComponent.paintImmediately(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)

test-terracer-3946.osm (1.8 KB ) - added by Ldp 15 years ago.
File to test with

Download all attachments as: .zip

Change History (4)

by Ldp, 15 years ago

Attachment: test-terracer-3946.osm added

File to test with

comment:1 by stoecker, 15 years ago

Summary: [NPE] While undoing terracer actionNPE - While undoing terracer action

comment:2 by jttt, 15 years ago

Resolution: duplicate
Status: newclosed

comment:3 by anonymous, 15 years ago

Closed as duplicate of #3966.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain zerebubuth@….
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.