Modify

Opened 18 years ago

Closed 17 years ago

#410 closed defect (fixed)

JOSM crashes when wrong keywords used in a tagging preset file

Reported by: osm@… Owned by: framm
Priority: trivial Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

The correct syntax on a combo box is:
<combo key="highway" text="Highway" values="cycleway" />

But if you replace the keyword 'values' with 'value' JOSM will accept the file at startup. But when you choose the presset it vill crash and an Unexpected Exception will occur with following error message:

Path: josm
URL: http://www.openstreetmap.de/svn/josm
Repository Root: http://www.openstreetmap.de/svn/josm
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 381
Node Kind: directory
Last Changed Author: gebner
Last Changed Rev: 381
Last Changed Date: 2007-10-13 17:13:04 +0200 (Sat, 13 Oct 2007)

java.lang.NullPointerException

at org.openstreetmap.josm.gui.tagging.TaggingPreset$Combo.addToPanel(TaggingPreset.java:111)
at org.openstreetmap.josm.gui.tagging.TaggingPreset.createPanel(TaggingPreset.java:257)
at org.openstreetmap.josm.gui.tagging.TaggingPreset.actionPerformed(TaggingPreset.java:263)
at org.openstreetmap.josm.gui.dialogs.PropertiesDialog$7.actionPerformed(PropertiesDialog.java:338)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$Handler.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 javax.swing.plaf.basic.BasicComboPopup$1.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.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 (1)

comment:1 by fatbozz, 17 years ago

Resolution: fixed
Status: newclosed

I think tagging presset plugin is rewritten, try update josm to latest and TP plugin too.

Modify Ticket

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