﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
15901	--load-preferences crashes on simple filename	Hb---	team	"Launching `java -jar josm-latest.jar --load-preferences=url-to-xml.xml` fails and gives a crash report dialog. Reason: A simple file name looks like a malformed URL and checking this has no error handler.

JOSM should not crash to a bug report but give an error message.

Loading the file worked with `--load-preferences=file://\full\path\on\windows\url-to-xml.xml`

{{{
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-02-10 01:40:02 +0100 (Sat, 10 Feb 2018)
Build-Date:2018-02-10 02:33:49
Revision:13400
Relative:URL: ^/trunk

Identification: JOSM/1.5 (13400 en) Windows 7 64-Bit
OS Build number: Windows 7 Professional (7601)
Memory Usage: 256 MB / 3604 MB (238 MB allocated, but free)
Java version: 1.8.0_161-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1280x1024
Maximum Screen Size: 1280x1024
VM arguments: [-Duser.language=en]
Program arguments: [--load-preferences=url-to-xml.xml]

Last errors/warnings:
- E: Handled by bug report queue: java.net.MalformedURLException: no protocol: url-to-xml.xml


=== REPORTED CRASH DATA ===
MainApplication#mainJOSM:
 - file: josmuser.xml

BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main (1)
java.net.MalformedURLException: no protocol: url-to-xml.xml
	at java.net.URL.<init>(Unknown Source)
	at java.net.URL.<init>(Unknown Source)
	at java.net.URL.<init>(Unknown Source)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:957)
	at org.openstreetmap.josm.gui.MainApplication$2.processArguments(MainApplication.java:278)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:845)
}}}
"	defect	closed	minor	18.02	Core		fixed	template_report	
