Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#4209 closed defect (duplicate)

getCurrentDataSet() is empty after adding new layers.

Reported by: anonymous Owned by: team
Priority: blocker Milestone:
Component: Core Version:
Keywords: Cc:

Description

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2009-12-20 02:31:44
Last Changed Author: bastiK
Revision: 2662
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2009-12-19 18:56:45 +0100 (Sat, 19 Dec 2009)
Last Changed Rev: 2662

Memory Usage: 37 MB / 63 MB (10 MB allocated, but free)
Java version: 1.6.0_15

Plugins: cadastre-fr
Plugin cadastre-fr Version: 19080

java.lang.NullPointerException

at org.openstreetmap.josm.actions.mapmode.DrawAction.exitMode(DrawAction.java:244)
at org.openstreetmap.josm.gui.MapFrame.selectMapMode(MapFrame.java:265)
at org.openstreetmap.josm.actions.mapmode.MapMode.actionPerformed(MapMode.java:72)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Attachments (0)

Change History (3)

comment:1 by pieren, 15 years ago

Priority: normalblocker
Summary: plugin cadastre-frgetCurrentDataSet() is empty after adding new layers.

Hi, this is not an issue in the plugin but in josm-latest itself. For some unknown reasons, adding a new layer seems to empty the current dataset collection and all functions using getCurrentDataSet() returns a null value.

I'm not sure if it is related but I can reproduce it by using the "show/hide" layer button on the OSM data layer.

comment:2 by jttt, 15 years ago

Resolution: duplicate
Status: newclosed

comment:3 by anonymous, 15 years ago

Closed as duplicate of #4207.

Modify Ticket

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