﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12746	Opening file directory causes JOSM crash	alexkemp	nokutu	"==== What steps will reproduce the problem?
1. Restart JOSM
2. (menu): File | Import pictures into sequence
3. In 'Select pictures' dialog double-click on dir icon

==== What is the expected result?
array of jpeg filenames to choose from

==== What happens instead?
JOSM crash

==== 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-03-13 01:17:21 +0100 (Sun, 13 Mar 2016)
Build-Date:2016-03-13 02:35:00
Revision:9979
Relative:URL: ^/trunk

Identification: JOSM/1.5 (9979 en_GB) Linux Debian GNU/Linux 8.4 (jessie)
Memory Usage: 111 MB / 247 MB (29 MB allocated, but free)
Java version: 1.8.0_77-b03, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found

Plugins:
- DirectUpload (31949)
- HouseNumberTaggingTool (31772)
- Mapillary (32040)
- apache-commons (31895)
- apache-http (31895)
- buildings_tools (31895)
- continuosDownload (1446070193)
- imagery_offset_db (32046)
- imageryadjust (31772)
- terracer (31895)
- utilsplugin2 (32099)

Last errors/warnings:
- E: java.lang.NegativeArraySizeException

java.lang.NegativeArraySizeException
	at java.util.Arrays.copyOf(Arrays.java:3236)
	at org.openstreetmap.josm.plugins.mapillary.utils.ImageUtil$ImageFileFilter.accept(ImageUtil.java:150)
	at javax.swing.JFileChooser.accept(JFileChooser.java:1650)
	at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:252)
	at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:228)

}}}
"	defect	closed	normal		Plugin mapillary		duplicate	template_report	
