Modify

Opened 3 years ago

Closed 3 years ago

#4010 closed defect (fixed)

[NPE] While deleting layer

Reported by: Ldp Owned by: team
Priority: major Component: Core
Version: latest Keywords:
Cc:

Description

'Discard and delete' a layer that had been modified and saved again since loading:

Build-Date: 2009-11-22 19:43:07		
Revision: 2505
Is-Local-Build: true

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

Dataset consistency test:
No problems found


Plugins: AddrInterpolationterracerutilspluginvalidatorwmsplugin
Plugin AddrInterpolation Version: 18503
Plugin terracer Version: 17874
Plugin utilsplugin Version: 18621
Plugin validator Version: 18623
Plugin wmsplugin Version: 18712

java.lang.NullPointerException
	at org.openstreetmap.josm.gui.dialogs.RelationListDialog$RelationListModel.setRelations(RelationListDialog.java:527)
	at org.openstreetmap.josm.gui.dialogs.RelationListDialog.initFromLayer(RelationListDialog.java:169)
	at org.openstreetmap.josm.gui.dialogs.RelationListDialog.activeLayerChange(RelationListDialog.java:695)
	at org.openstreetmap.josm.gui.MapView.fireActiveLayerChanged(MapView.java:234)
	at org.openstreetmap.josm.gui.MapView.removeLayer(MapView.java:272)
	at org.openstreetmap.josm.Main.removeLayer(Main.java:189)
	at org.openstreetmap.josm.gui.dialogs.LayerListDialog$DeleteLayerAction.actionPerformed(LayerListDialog.java:336)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(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)

The layer is not removed, but looses focus. No other layer has focus either.

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by Ldp

Also happens if you open a new layer and then immediately delete it.

comment:2 Changed 3 years ago by Ldp

Introduced in 2504. Above report is for 2505.

comment:3 Changed 3 years ago by anonymous

fixed in r2506

comment:4 Changed 3 years ago by anonymous

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

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.