﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6468	Applying tags from multiple objects to multipolygon crashes JOSM	lars@…	team	"What steps will reproduce the problem?
 1. Highlight several polygons that share a name and some other common properties.
 2. Create a multipolygon relation with these polygons as members. Assign it a name
 3. Select the members and copy them (ctrl+c)
 4. Select the multipolygon
 5. Apply the tags from the members to the multipolygon (ctrl+shift+v)

What is the expected result?
 That (at least) the common properties from the polygons should be applied to the multipolygon.

What happens instead?
 Crash.

I tried it several time, and it appears to be reproducible in JOSM 4064. A filter on landuse=nature_reserve was enabled at the time.

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-04-26 01:31:34
Last Changed Author: bastiK
Revision: 4064
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-04-25 20:32:26 +0200 (Mon, 25 Apr 2011)
Last Changed Rev: 4064

Identification: JOSM/1.5 (4064 en)
Memory Usage: 102 MB / 247 MB (44 MB allocated, but free)
Java version: 1.6.0_26, Sun Microsystems Inc., Java HotSpot(TM) Client VM
Operating system: Windows XP
Dataset consistency test: No problems found

Plugin: editgpx (25407)

java.lang.NullPointerException
	at org.openstreetmap.josm.data.osm.OsmPrimitive.getFilteredList(OsmPrimitive.java:140)
	at org.openstreetmap.josm.actions.PasteTagsAction$TagPaster.getTargetStatistics(PasteTagsAction.java:122)
	at org.openstreetmap.josm.actions.PasteTagsAction$TagPaster.pasteFromHomogeneousSource(PasteTagsAction.java:153)
	at org.openstreetmap.josm.actions.PasteTagsAction$TagPaster.execute(PasteTagsAction.java:235)
	at org.openstreetmap.josm.actions.PasteTagsAction.actionPerformed(PasteTagsAction.java:251)
	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.process
}}}
"	defect	closed	normal		Core		duplicate	template_report	
