﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
20153	Crash after plugins related error message after opening a .joz	Børge A. Roum <josmtrac.hei@…>	maripogoda	"==== What steps will reproduce the problem?
First time opening a .joz I created with the previous version of JOSM in the new version recently released.

1. Opened the .joz and got a message: Update plugins (""An unexpected exception occurred that may have come from the 'EasyPresets' plugin. According to the information within the plugin, the author is Maripo GODA. Try updating to the newest version of this plugin before reporting a bug."")
2. Clicked Update plugin
3. Got a warning ""JOSM could not find information about the following plugins:
jaxb
routes
utilsplugin2
apache-commons
EasyPresets
Mapillary
buildings_tools
jna
apache-http
The plugins are not going to be loaded.""
4. Pressed Ok and got the crash report, asking me to submit it

Hope this helps.

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-11-21 14:56:29 +0100 (Sat, 21 Nov 2020)
Revision:17329
Build-Date:2020-11-22 02:30:52
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (17329 en) Linux Zorin OS 15.3
Memory Usage: 544 MB / 1964 MB (347 MB allocated, but free)
Java version: 11.0.9.1+1-Ubuntu-0ubuntu1.18.04, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920x1080 (scaling 1.0x1.0)
Maximum Screen Size: 1920x1080
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
Desktop environment: ubuntu:GNOME
Java package: openjdk-11-jre:amd64-11.0.9.1+1-0ubuntu1~18.04
Environment variable LANG: nb_NO.UTF-8
fonts-noto: fonts-noto:all-20171026-2
VM arguments: [--add-modules=java.scripting,java.sql, -Djosm.restart=true, -Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found

Plugins:
+ EasyPresets (1604762161)
+ Mapillary (1.5.27)
+ apache-commons (35524)
+ apache-http (35589)
+ buildings_tools (35640)
+ jaxb (35543)
+ jna (35458)
+ routes (35543)
+ utilsplugin2 (35640)

Last errors/warnings:
- 00015.580 W: Could not load Mapillary brand image!
- 00862.872 E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: 20 >= 20
- 00862.976 E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: 21 >= 21
- 00862.978 E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: 20 >= 20
- 00863.612 E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: 21 >= 21
- 00870.819 W: Warning - <html>JOSM could not find information about the following plugins:<ul><li>jaxb</li><li>routes</li><li>utilsplugin2</li><li>apache-commons</li><li>EasyPresets</li><li>Mapillary</li><li>buildings_tools</li><li>jna</li><li>apache-http</li></ul>The plugins are not going to be loaded.</html>


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: Timer-4 (68)
java.lang.ArrayIndexOutOfBoundsException: 20 >= 20
	at java.base/java.util.Vector.removeElementAt(Vector.java:580)
	at java.desktop/javax.swing.tree.DefaultMutableTreeNode.remove(DefaultMutableTreeNode.java:207)
	at java.desktop/javax.swing.tree.DefaultMutableTreeNode.removeAllChildren(DefaultMutableTreeNode.java:393)
	at org.openstreetmap.josm.gui.preferences.ToolbarPreferences.loadActions(ToolbarPreferences.java:1067)
	at org.openstreetmap.josm.gui.preferences.ToolbarPreferences.getDefinedActions(ToolbarPreferences.java:1096)
	at org.openstreetmap.josm.gui.preferences.ToolbarPreferences.refreshToolbarControl(ToolbarPreferences.java:1168)
	at org.maripo.josm.easypresets.EasyPresetsPlugin$1.run(EasyPresetsPlugin.java:55)
	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
	at java.base/java.util.TimerThread.run(Timer.java:506)
}}}
"	defect	closed	normal		Plugin EasyPresets		duplicate	template_report	
