Modify ↓
#4207 closed defect (fixed)
getCurrentDataSet() returns null after adding new layers (then null pointers exceptions)
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- launch josm (latest :2653) and load Vougy (74130) or something else in Haute-Savoie
- You can select or draw ways (normal)
- Ask for cadastr (F11) for Vougy (Projectino 4 zones, zone 2) 4 The cadastre come (ok) but you cannot draw oe select anymore ! 5 if (and only if) the cadatre layer is on top and hidden (unvisible), you can select or draw ?! 6 then you get this exception.
Please provide any additional information below. Attach a screenshot if
possible.
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2009-12-19 02:32:07 Last Changed Author: jttt Revision: 2653 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2009-12-18 20:10:06 +0100 (Fri, 18 Dec 2009) Last Changed Rev: 2653 Memory Usage: 45 MB / 508 MB (3 MB allocated, but free) Java version: 1.6.0_16 Plugins: cadastre-fr,remotecontrol Plugin remotecontrol Version: 18678 Plugin cadastre-fr Version: 19080 java.lang.NullPointerException at org.openstreetmap.josm.actions.mapmode.DrawAction.exitMode(DrawAction.java:247) at org.openstreetmap.josm.gui.MapFrame.selectMapMode(MapFrame.java:266) 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 (6)
comment:1 by , 15 years ago
Component: | Plugin cadastre-fr → Core |
---|---|
Owner: | changed from | to
Priority: | normal → blocker |
comment:2 by , 15 years ago
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.
see #4209 - it's the same error
comment:3 by , 15 years ago
Summary: | Imposible to draw anything with the cadastre plugin → getCurrentDataSet() returns null after adding new layers (then null pointers exceptions) |
---|
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.