Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#4970 closed defect (fixed)

buildings_tools: Check for OSM data layer before enter mode

Reported by: OliverW Owned by: Upliner
Priority: minor Milestone:
Component: Plugin buildings_tools Version:
Keywords: Cc:

Description

Select building_mode leads to NP exception, if no data layer is present (see stack trace below).

Expected behaviour: Issue error message

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2010-04-24 01:31:33
Last Changed Author: stoecker
Revision: 3201
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2010-04-23 23:09:20 +0200 (Fri, 23 Apr 2010)
Last Changed Rev: 3201

Memory Usage: 142 MB / 508 MB (43 MB allocated, but free)
Java version: 1.6.0_17, Sun Microsystems Inc., Java HotSpot(TM) Client VM
Operating system: Windows XP

Plugins: AddrInterpolation,ColumbusCSV,DirectUpload,ElevationProfile,ImageWayPoint,PicLayer,buildings_tools,colorscheme,editgpx,livegps,measurement,openvisible,plastic_laf,slippymap,terracer
Plugin plastic_laf (Version: 19469)
Plugin PicLayer (Version: 20217)
Plugin ImageWayPoint (Version: 19444)
Plugin slippymap (Version: 19887)
Plugin ElevationProfile (Version: 288)
Plugin livegps (Version: 20431)
Plugin AddrInterpolation (Version: 19422)
Plugin terracer (Version: 20956)
Plugin measurement (Version: 19681)
Plugin ColumbusCSV (Version: 299)
Plugin colorscheme (Version: 19426)
Plugin editgpx (Version: 19683)
Plugin openvisible (Version: 20067)
Plugin DirectUpload (Version: 20881)
Plugin buildings_tools (Version: 20269)

java.lang.NullPointerException

at buildings_tools.DrawBuildingAction.enterMode(DrawBuildingAction.java:140)
at org.openstreetmap.josm.gui.MapFrame.selectMapMode(MapFrame.java:265)
at org.openstreetmap.josm.actions.mapmode.MapMode.actionPerformed(MapMode.java:72)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.KeyboardManager.fireBinding(Unknown Source)
at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(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)

Change History (4)

comment:1 by stoecker, 15 years ago

Component: CorePlugin building_tools
Keywords: buildings_tools Plugins removed
Owner: changed from team to Upliner

comment:2 by Upliner, 15 years ago

How have you done this? Drawing tools should be disabled when there's no dataset.

comment:3 by Upliner, 15 years ago

Resolution: fixed
Status: newclosed

Fixed

comment:4 by OliverW, 15 years ago

I pressed the 'W' key

Modify Ticket

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