﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13096	Mapillary import images causes 'Exception error'	vandalfsen@…	nokutu	"==== What steps will reproduce the problem?
1. Start JOSM with Mapillary plug-in activated
2. Download some data from OSM
3. Select ""Afbeeldingen importeren"" from menu ""Bestand"" (Translation: Import images, File)
4. Double click a folder to change to it.

==== What is the expected result?
The ""select images""-window shows the contents of the folder.

==== What happens instead?
A exception error occurs, but the window which should inform you of this hides behind the ""select images""-window.
==== 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: 2016-06-04 17:28:58 +0200 (Sat, 04 Jun 2016)
Build-Date:2016-06-04 15:31:27
Revision:10327
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10327 nl) Windows XP 32-Bit
Memory Usage: 204 MB / 245 MB (28 MB allocated, but free)
Java version: 1.8.0_91-b14, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\Local Settings\Application Data\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-54f745d3, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=3022, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAC1Eam5scC5hcHBsaWNhdGlvbi5ocmVmPWh0dHBzOi8vam9zbS5vcGVuc3RyZWV0bWFwLmRlL2Rvd25sb2FkL2pvc20uam5scAA=]
Dataset consistency test: No problems found

Plugins:
- Mapillary (32158)
- apache-commons (32309)
- apache-http (32309)
- turnrestrictions (32158)
- undelete (32309)
- utilsplugin2 (32158)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
- https://www.dropbox.com/s/qo3ai47fpv241jf/Styles_Fixme_and_Notes.zip?raw=1

Last errors/warnings:
- E: java.lang.NegativeArraySizeException

java.lang.NegativeArraySizeException
	at java.util.Arrays.copyOf(Unknown Source)
	at org.openstreetmap.josm.plugins.mapillary.utils.ImageUtil$ImageFileFilter.accept(ImageUtil.java:150)
	at javax.swing.JFileChooser.accept(Unknown Source)
	at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(Unknown Source)
	at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(Unknown Source)
}}}
"	defect	closed	normal		Plugin mapillary		fixed	template_report	
