#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 )
Copying a relation with incomplete node members and pasting it to a new layer results in NPE.
What steps will reproduce the problem?
- Download Esch-sur-Alzette area
- Search for boundary=administrative admin_level=9
- Copy
- Create new layer
- 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 , 13 years ago
comment:3 by , 13 years ago
Description: | modified (diff) |
---|---|
Keywords: | template_report removed |
Priority: | normal → major |
Summary: | Pasting relations in new layer produces exception → NPE when pasting relation with incomplete node members to new layer |
comment:4 by , 13 years ago
Please attach an example OSM file to ease debugging. Probably continuing on incomplete data is enough (move lines 59–61 up).
comment:6 by , 13 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Sorry, wrong reference in commit r5096 …
Similar to #7517