Modify

Opened 15 years ago

Closed 15 years ago

#3055 closed defect (fixed)

can't reverse a way added to relation with no role

Reported by: kaitu Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: way reverse relation Cc:

Description

When I add a way to a relation, leaving the role field blank, and then try to reverse that way, I get a 'Unexpected Exception error'. When I close the 'Unexpected Exception error' window, the way has not been reversed.

After uploading the changes to server, I still get the same error.

If I start a new layer and download the data, then I can revert the way in the new layer. I still cannot revert the way in the same layer in which I added the way to the relation.

The error doesn't occur if, in the relation editor, I write something in the 'role' field of the way and apply the changes.

Possible workaround (while the bug gets fixed) when the role must intentionally remain blank:
1)write some text in the role field
2)apply changes and close relation editor
3)edit the relation and delete the text from the role field
4)now the way can be reversed

Here is a dump of josm diagnostic text:

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1824
Node Kind: directory
Last Changed Author: ulfl
Last Changed Rev: 1824
Last Changed Date: 2009-07-24 03:14:11 +0200 (Fri, 24 Jul 2009)

Memory Usage: 38 MB / 508 MB (14 MB allocated, but free)
Java version: 1.6.0_13

Plugins: measurementutilspluginvalidatorwmsplugin
Plugin measurement Version: 16317
Plugin utilsplugin Version: 16628
Plugin validator Version: 16629
Plugin wmsplugin Version: 16599

java.lang.NullPointerException

at org.openstreetmap.josm.corrector.ReverseWayTagCorrector.execute(ReverseWayTagCorrector.java:120)
at org.openstreetmap.josm.actions.ReverseWayAction.actionPerformed(ReverseWayAction.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.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 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 Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

fixed in r1829

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.