Modify

Opened 15 years ago

Closed 15 years ago

#3698 closed defect (fixed)

copying a relation or its keys/values impossible

Reported by: vsandre Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: relation copy Cc:

Description

Copying a relation via CTRL+C or the menu entry is impossible and causes the following failure.

{{{Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 2276
Node Kind: directory
Last Changed Author: Gubaer
Last Changed Rev: 2276
Last Changed Date: 2009-10-11 22:50:48 +0200 (Sun, 11 Oct 2009)

Memory Usage: 161 MB / 997 MB (124 MB allocated, but free)
Java version: 1.6.0_16

Plugins: AgPifoJ
DirectUpload
PicLayer
colorscheme
dataimport
editgpx
graphview
measurement
openstreetbugs
remotecontrol
routes
terracer
utilsplugin
validator
walkingpapers
wmsplugin
Plugin AgPifoJ Version: 17707
Plugin DirectUpload Version: 17532
Plugin PicLayer Version: 17327
Plugin colorscheme Version: 16383
Plugin dataimport Version: 18071
Plugin editgpx Version: 17530
Plugin graphview Version: 17538
Plugin measurement Version: 17377
Plugin openstreetbugs Version: 18071
Plugin remotecontrol Version: 17858
Plugin routes Version: 18076
Plugin terracer Version: 17874
Plugin utilsplugin Version: 17707
Plugin validator Version: 18092
Plugin walkingpapers Version: 17822
Plugin wmsplugin Version: 17817

java.lang.IllegalArgumentException: Relation member cannot be null

at org.openstreetmap.josm.data.osm.RelationMember.<init>(RelationMember.java:112)
at org.openstreetmap.josm.actions.CopyAction$1.visit(CopyAction.java:100)
at org.openstreetmap.josm.data.osm.Relation.visit(Relation.java:105)
at org.openstreetmap.josm.actions.CopyAction$1.visitAll(CopyAction.java:108)
at org.openstreetmap.josm.actions.CopyAction.copyData(CopyAction.java:64)
at org.openstreetmap.josm.actions.CopyAction.actionPerformed(CopyAction.java:45)
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)}}}

BTW duplicating via the relation editor is possible.

Attachments (0)

Change History (1)

comment:1 by Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

(In [2283]) fixed #3698: copying a relation or its keys/values impossible

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.