Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6158 closed defect (fixed)

MapDust plugin crashing after deleting a layer.

Reported by: rickmastfan67 Owned by: jBeata
Priority: major Milestone:
Component: Plugin mapdust Version: latest
Keywords: Cc:

Description

Steps to reproduce:

  1. File > Download from OSM
  2. Select an area to download in the "Slippy Map" window (doesn't matter what size) and download.
  3. Once the data is downloaded, delete "Data Layer 1". DO NOT START MAPDUST FROM THE LEFT AT ANY TIME!

Expected results:
MapDust's plugin doesn't crash.

What happens?:
MapDust crashes without having been activated at all from the left (or via the shortcut).

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-03-28 01:31:46
Last Changed Author: bastiK
Revision: 4008
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-03-27 14:42:14 +0200 (Sun, 27 Mar 2011)
Last Changed Rev: 4008

Identification: JOSM/1.5 (4008 en)
Memory Usage: 192 MB / 3640 MB (124 MB allocated, but free)
Java version: 1.6.0_24, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Windows 7

Plugin: mapdust (25657)

java.lang.NullPointerException
	at java.awt.Container.remove(Unknown Source)
	at org.openstreetmap.josm.plugins.mapdust.gui.MapdustGUI.destroy(MapdustGUI.java:151)
	at org.openstreetmap.josm.gui.dialogs.DialogsPanel.destroy(DialogsPanel.java:296)
	at org.openstreetmap.josm.gui.MapFrame.destroy(MapFrame.java:216)
	at org.openstreetmap.josm.Main.setMapFrame(Main.java:186)
	at org.openstreetmap.josm.Main.removeLayer(Main.java:205)
	at org.openstreetmap.josm.gui.dialogs.LayerListDialog$DeleteLayerAction.actionPerformed(LayerListDialog.java:360)
	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.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(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 (0)

Change History (2)

comment:1 Changed 8 years ago by jBeata

Resolution: fixed
Status: newclosed

Thanks for reporting this issue. This issue was solved. The fix it is contained in the following MapDust JOSM release: 25754.

comment:2 Changed 8 years ago by stoecker

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain jBeata.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.