Modify

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#3946 closed defect (duplicate)

NPE - While undoing terracer action

Reported by: Ldp Owned by: zerebubuth@…
Priority: normal 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 4 years ago.
File to test with

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by Ldp

File to test with

comment:1 Changed 4 years ago by stoecker

  • Summary changed from [NPE] While undoing terracer action to NPE - While undoing terracer action

comment:2 Changed 3 years ago by jttt

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

comment:3 Changed 3 years ago by anonymous

Closed as duplicate of #3966.

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.