﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
15433	"DataIntegrityProblemException: ""Deleted member referenced"" during Revert Changeset"	anonymous	Upliner	"==== What steps will reproduce the problem?
1. Revert Changeset 52813481
2. 
3. 

==== What is the expected result?
A new changeset to upload.

==== What happens instead?
A crash with DataIntegrityProblemException

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-10-03 21:43:00 +0200 (Tue, 03 Oct 2017)
Build-Date:2017-10-03 19:50:21
Revision:12921
Relative:URL: ^/trunk

Identification: JOSM/1.5 (12921 en) Mac OS X 10.13
OS Build number: Mac OS X 10.13 (17A405)
Memory Usage: 456 MB / 910 MB (101 MB allocated, but free)
Java version: 1.8.0_40-b27, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: Display 1535231425 1280x960, Display 69671680 1920x1200
Maximum Screen Size: 1920x1200
VM arguments: [-Dsun.java2d.opengl=true]

Dataset consistency test:
[DELETED REFERENCED] {Relation id=3721826 version=3 MT [way 279848174, way 279848183, way 455399309, way 279848182, way 279848186, way 279848187, way 279848188]} refers to deleted primitive {Way id=279848186 version=2 D nodes=[]}


Plugins:
+ ImportImagePlugin (33563)
+ PicLayer (33385)
+ apache-commons (33668)
+ dataimport (33581)
+ editgpx (33004)
+ ejml (32680)
+ geotools (33380)
+ graphview (33004)
+ importvec (33564)
+ jts (32699)
+ log4j (32699)
+ opendata (33617)
+ public_transport (33166)
+ public_transport_layer (33528)
+ reverter (33572)
+ routing (33004)
+ tageditor (33579)
+ turnlanes (33294)
+ turnlanes-tagging (254)
+ turnrestrictions (33537)
+ undelete (33480)
+ utilsplugin2 (33704)

Last errors/warnings:
- W: New conflict: Conflict [my={Node id=534060187 version=2 D }, their={Node id=534060187 version=0 IV lat=37.0713927,lon=-121.9586023}]
- W: New conflict: Conflict [my={Node id=498491615 version=2 D }, their={Node id=498491615 version=0 IV lat=37.0713951,lon=-121.9586023}]
- W: New conflict: Conflict [my={Node id=502724687 version=2 D }, their={Node id=502724687 version=0 IV lat=37.0714211,lon=-121.9586079}]
- W: New conflict: Conflict [my={Node id=502724688 version=2 D }, their={Node id=502724688 version=0 IV lat=37.0714243,lon=-121.9586086}]
- W: New conflict: Conflict [my={Node id=502724689 version=2 D }, their={Node id=502724689 version=0 IV lat=37.0714475,lon=-121.958619}]
- W: New conflict: Conflict [my={Node id=498491603 version=2 D }, their={Node id=498491603 version=0 IV lat=37.0714753,lon=-121.9586377}]
- W: New conflict: Conflict [my={Node id=502724692 version=2 D }, their={Node id=502724692 version=0 IV lat=37.0714777,lon=-121.9586394}]
- W: New conflict: Conflict [my={Node id=534060192 version=2 D }, their={Node id=534060192 version=0 IV lat=37.0714805,lon=-121.9586418}]
- W: New conflict: Conflict [my={Node id=534060191 version=2 D }, their={Node id=534060191 version=0 IV lat=37.0714939,lon=-121.958652}]
- E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted member referenced: {Relation id=3721826 version=3 MT [way 279848174, way 279848183, way 455399309, way 279848182, way 279848186, way 279848187, way 279848188]}


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (17) of main
org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Deleted member referenced: {Relation id=3721826 version=3 MT [way 279848174, way 279848183, way 455399309, way 279848182, way 279848186, way 279848187, way 279848188]}
	at org.openstreetmap.josm.data.osm.Relation.checkMembers(Relation.java:512)
	at org.openstreetmap.josm.data.osm.Relation.fireMembersChanged(Relation.java:524)
	at org.openstreetmap.josm.data.osm.Relation.setMembers(Relation.java:65)
	at org.openstreetmap.josm.data.osm.Relation.cloneFrom(Relation.java:258)
	at org.openstreetmap.josm.command.ChangeCommand.executeCommand(ChangeCommand.java:81)
	at org.openstreetmap.josm.command.SequenceCommand.executeCommand(SequenceCommand.java:80)
	at org.openstreetmap.josm.data.UndoRedoHandler.addNoRedraw(UndoRedoHandler.java:72)
	at org.openstreetmap.josm.data.UndoRedoHandler.add(UndoRedoHandler.java:100)
	at reverter.RevertChangesetTask$3.run(RevertChangesetTask.java:126)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:702)
	at java.awt.EventQueue$3.run(EventQueue.java:696)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
	at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
	at java.awt.Dialog.show(Dialog.java:1084)
	at java.awt.Component.show(Component.java:1654)
	at java.awt.Component.setVisible(Component.java:1606)
	at java.awt.Window.setVisible(Window.java:1014)
	at java.awt.Dialog.setVisible(Dialog.java:1005)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doBeginTask$3(PleaseWaitProgressMonitor.java:256)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor$$Lambda$198/1053154442.run(Unknown Source)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doInEDT$0(PleaseWaitProgressMonitor.java:114)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor$$Lambda$199/805451042.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:702)
	at java.awt.EventQueue$3.run(EventQueue.java:696)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
}}}
"	defect	closed	normal		Plugin reverter		duplicate	template_report	
