Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#7519 closed defect (duplicate)

NPE when pasting relation with incomplete node members to new layer

Reported by: Stereo Owned by: team
Priority: major Milestone:
Component: Core Version: tested
Keywords: Cc:

Description (last modified by bastiK)

Copying a relation with incomplete node members and pasting it to a new layer results in NPE.

What steps will reproduce the problem?

  1. Download Esch-sur-Alzette area
  2. Search for boundary=administrative admin_level=9
  3. Copy
  4. Create new layer
  5. Paste

What is the expected result?

Objects are pasted in new layer

What happens instead?

Null pointer exception

Please provide any additional information below. Attach a screenshot if
possible.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-03-07 02:32:17
Last Changed Author: stoecker
Revision: 5047
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-03-06 10:30:34 +0100 (Tue, 06 Mar 2012)
Last Changed Rev: 5047

Identification: JOSM/1.5 (5047 en_GB)
Memory Usage: 755 MB / 2031 MB (226 MB allocated, but free)
Java version: 1.6.0_29, Apple Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Mac OS X
Dataset consistency test: No problems found

Plugin: AddrInterpolation (27852)
Plugin: CommandLine (27981)
Plugin: DirectDownload (27649)
Plugin: DirectUpload (27865)
Plugin: FixAddresses (27907)
Plugin: ImportImagePlugin (27906)
Plugin: OpeningHoursEditor (27852)
Plugin: PicLayer (27883)
Plugin: RoadSigns (27868)
Plugin: buildings_tools (27984)
Plugin: cadastre-fr (27981)
Plugin: contourmerge (1003)
Plugin: dataimport (27289)
Plugin: download_along (27852)
Plugin: importvec (27852)
Plugin: licensechange (27964)
Plugin: livegps (27852)
Plugin: mapdust (27884)
Plugin: namemanager (27906)
Plugin: openstreetbugs (27852)
Plugin: pdfimport (27867)
Plugin: proj4j (27902)
Plugin: public_transport (28014)
Plugin: restart (27852)
Plugin: surveyor (27885)
Plugin: terracer (27852)
Plugin: turnlanes (27927)
Plugin: turnrestrictions (27891)
Plugin: utilsplugin2 (28045)
Plugin: wayselector (27852)

java.lang.NullPointerException
	at org.openstreetmap.josm.actions.PasteAction.pasteData(PasteAction.java:52)
	at org.openstreetmap.josm.actions.PasteAction.actionPerformed(PasteAction.java:42)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1645)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
	at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
	at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:229)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2928)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2920)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
	at java.awt.Component.processEvent(Component.java:6150)
	at java.awt.Container.processEvent(Container.java:2085)
	at java.awt.Component.dispatchEventImpl(Component.java:4735)
	at java.awt.Container.dispatchEventImpl(Container.java:2143)
	at java.awt.Component.dispatchEvent(Component.java:4565)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
	at java.awt.Component.dispatchEventImpl(Component.java:4607)
	at java.awt.Container.dispatchEventImpl(Container.java:2143)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4565)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
	at java.awt.EventQueue.access$000(EventQueue.java:85)
	at java.awt.EventQueue$1.run(EventQueue.java:638)
	at java.awt.EventQueue$1.run(EventQueue.java:636)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
	at java.awt.EventQueue$2.run(EventQueue.java:652)
	at java.awt.EventQueue$2.run(EventQueue.java:650)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:12

Attachments (0)

Change History (7)

comment:1 by skyper, 12 years ago

Similar to #7517

comment:2 by bastiK, 12 years ago

Ticket #7517 has been marked as a duplicate of this ticket.

comment:3 by bastiK, 12 years ago

Description: modified (diff)
Keywords: template_report removed
Priority: normalmajor
Summary: Pasting relations in new layer produces exceptionNPE when pasting relation with incomplete node members to new layer

comment:4 by simon04, 12 years ago

Please attach an example OSM file to ease debugging. Probably continuing on incomplete data is enough (move lines 59–61 up).

Reference: http://josm.openstreetmap.de/browser/trunk/src/org/openstreetmap/josm/actions/PasteAction.java?rev=5047#L52

comment:5 by bastiK, 12 years ago

E.g. relation 452255 (download without members and referrers).

comment:6 by simon04, 12 years ago

Resolution: duplicate
Status: newclosed

Sorry, wrong reference in commit r5096

Last edited 12 years ago by simon04 (previous) (diff)

comment:7 by simon04, 12 years ago

Closed as duplicate of #7517.

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.