﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22144	NPE in ChangesetReverter#init due to no edit layer	anonymous	Upliner	"==== What steps will reproduce the problem?
1. There is no edit layer in editor.
1. Open 127.0.0.1:8111/revert_changeset?id=<id>

==== What is the expected result?
I want reverted data to be loaded into a new layer

==== What happens instead?
Exception occurs

==== Please provide any additional information below. Attach a screenshot if possible.
If there is a layer in editor, reverted data will load into it.

JOSM version: tested 18463 


{{{
=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (24) of main
java.lang.NullPointerException: Cannot read field ""data"" because ""editLayer"" is null
	at reverter.ChangesetReverter.<init>(ChangesetReverter.java:150)
	at reverter.RevertChangesetTask.revertChangeset(RevertChangesetTask.java:130)
	at reverter.RevertChangesetTask.realRun(RevertChangesetTask.java:93)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
}}}
"	defect	closed	normal		Plugin reverter	tested	fixed	template_report	
