Modify

Opened 2 years ago

Closed 21 months ago

Last modified 21 months ago

#6468 closed defect (duplicate)

Applying tags from multiple objects to multipolygon crashes JOSM

Reported by: lars@… Owned by: team
Priority: normal Component: Core
Version: Keywords: template_report
Cc:

Description

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

Attachments (0)

Change History (2)

comment:1 Changed 21 months ago by Don-vip

  • Resolution set to duplicate
  • Status changed from new to closed

comment:2 Changed 21 months ago by Don-vip

Closed as duplicate of #6746.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.