﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5336	Exception when pasting building	bilbo	team	"I searched for ""building"". This ended up with selecting 656 buildings. I used ""copy"", then I created a new layer and then I tried pasting all the buildings in the new layer. This failed - I ended up with this exception and about 500 nodes were placed in the new layer.

{{{
Build-Date: 2010-07-18 21:48:18
Revision: 3376
Is-Local-Build: true

Identification: JOSM/1.5 (3376 SVN en)
Memory Usage: 786 MB / 786 MB (144 MB allocated, but free)
Java version: 1.6.0_21, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Linux

Dataset consistency test:
[COMPLETE WITHOUT COORDINATES] {Node id=-276907 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275785 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274671 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276590 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275460 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275362 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277281 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276167 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275045 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275964 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274842 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276761 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275647 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277566 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277460 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276338 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275224 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277143 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276021 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276940 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275818 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274704 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276623 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275501 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275395 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277314 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276200 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275078 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276997 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274875 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276794 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275680 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277501 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276371 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275249 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277176 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276054 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274956 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276949 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275851 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274729 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276656 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275534 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275428 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277347 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276225 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275111 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277030 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274908 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276827 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275705 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276510 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276404 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275282 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277201 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276087 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274965 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276982 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275884 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274762 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276681 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275567 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277380 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276258 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275144 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277063 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274917 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276860 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275738 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276543 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276445 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275315 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277234 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276120 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274998 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275893 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274795 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276714 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275600 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277519 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277421 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276291 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275169 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277096 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275974 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276869 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275771 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274649 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276576 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276478 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275348 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277267 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276145 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275031 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275926 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-274828 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-276747 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-275625 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277552 version=0 V } is not incomplete but has null coordinates
[COMPLETE WITHOUT COORDINATES] {Node id=-277454 version=0 V } is not incomplete but has null coordinates
Exception during dataset integrity test:
java.lang.NullPointerException
	at org.openstreetmap.josm.data.osm.DatasetConsistencyTest.searchNodes(DatasetConsistencyTest.java:82)
	at org.openstreetmap.josm.data.osm.DatasetConsistencyTest.runTest(DatasetConsistencyTest.java:143)
	at org.openstreetmap.josm.data.osm.DatasetConsistencyTest.runTests(DatasetConsistencyTest.java:157)
	at org.openstreetmap.josm.actions.ShowStatusReportAction.getReportHeader(ShowStatusReportAction.java:69)
	at org.openstreetmap.josm.tools.BugReportExceptionHandler.handleException(BugReportExceptionHandler.java:88)
	at org.openstreetmap.josm.tools.BugReportExceptionHandler.handle(BugReportExceptionHandler.java:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at java.awt.EventDispatchThread.handleException(EventDispatchThread.java:388)
	at java.awt.EventDispatchThread.processException(EventDispatchThread.java:294)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:286)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Plugin: buildings_tools (22529)
Plugin: graphview (22547)
Plugin: measurement (22547)
Plugin: multipoly (22171)
Plugin: openstreetbugs (22548)
Plugin: remotecontrol (22479)
Plugin: reverter (22533)
Plugin: terracer2 (${version.entry.commit.revision})
Plugin: tracer (22177)
Plugin: undelete
Plugin: validator (22204)
Plugin: wmsplugin (22581)

java.lang.IllegalStateException: A primitive with ID = 0 cannot be invisible.
	at org.openstreetmap.josm.data.osm.OsmPrimitive.setVisible(OsmPrimitive.java:743)
	at org.openstreetmap.josm.data.osm.OsmPrimitive.load(OsmPrimitive.java:1461)
	at org.openstreetmap.josm.data.osm.Node.load(Node.java:158)
	at org.openstreetmap.josm.command.AddPrimitivesCommand.executeCommand(AddPrimitivesCommand.java:36)
	at org.openstreetmap.josm.data.UndoRedoHandler.addNoRedraw(UndoRedoHandler.java:37)
	at org.openstreetmap.josm.data.UndoRedoHandler.add(UndoRedoHandler.java:59)
	at org.openstreetmap.josm.actions.PasteAction.pasteData(PasteAction.java:145)
	at org.openstreetmap.josm.actions.PasteAction.actionPerformed(PasteAction.java:40)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633)
	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:6044)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	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:4502)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
}}}"	defect	closed	normal		Core	tested	fixed		
