Modify ↓
Opened 14 years ago
Closed 14 years ago
#4197 closed defect (fixed)
Disable multipolygon menu entry until layer is loaded
Reported by: | Ldp | Owned by: | bilbo |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | Core multipoly | Version: | |
Keywords: | Cc: |
Description
Open JOSM, see that the Multipolyon entry in the Tools menu is not grayed out, select it, NPE. Not a big issue, but it's better if it was disabled until a layer is active.
Build-Date: 2009-12-18 09:07:58 Revision: 2652 Is-Local-Build: true Memory Usage: 11 MB / 1016 MB (2 MB allocated, but free) Java version: 1.6.0_17 Plugins: AddrInterpolation,multipoly,terracer,validator,wmsplugin Plugin AddrInterpolation Version: 18874 Plugin multipoly Version: 18962 Plugin terracer Version: 19129 Plugin validator Version: 19072 Plugin wmsplugin Version: 18953 java.lang.NullPointerException at terracer.TerracerAction.actionPerformed(TerracerAction.java:65) 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.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(Unknown Source) at javax.swing.JMenuItem.fireMenuDragMouseReleased(Unknown Source) at javax.swing.JMenuItem.processMenuDragMouseEvent(Unknown Source) at javax.swing.JMenuItem.processMouseEvent(Unknown Source) at javax.swing.MenuSelectionManager.processMouseEvent(Unknown Source) at javax.swing.plaf.basic.BasicPopupMenuUI$MouseGrabber.eventDispatched(Unknown Source) at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Unknown Source) at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source) at java.awt.Toolkit.notifyAWTEventListeners(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)
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Fixed in plugin version 19138
Menu item is now enabled only if layer is active and something is selected.