Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#5893 closed defect (fixed)

Null Pointer Exception while loding custom presets at start - JOSM hangs on splash screen

Reported by: Fabi2 Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:


I currently try to write some prsets for the german healthcare system as I encountered this bug.

Snippet from the preferences file:

taggingpreset.sources-list.0=resource://data/defaultpresets.xml.Internal Preset
taggingpreset.sources-list.1= für Handwerker

This means the internal presets, the craft=* and my own presets should be loaded.


  1. Activate the presets in the preferences, close JOSM and the make a restart.
  2. The error pops up on startup.
  3. JOSM hangs on the the splash screen, while "Hauptfenster erzeugen" (creating main window).
  4. JOSM must be killed.
Repository Root:
Build-Date: 2011-01-31 02:31:14
Last Changed Author: stoecker
Revision: 3835
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Date: 2011-01-31 00:10:01 +0100 (Mon, 31 Jan 2011)
Last Changed Rev: 3835

Identification: JOSM/1.5 (3835 de)
Memory Usage: 151 MB / 3111 MB (113 MB allocated, but free)
Java version: 1.6.0_20, Sun Microsystems Inc., OpenJDK 64-Bit Server VM
Operating system: Linux

Plugin: AddrInterpolation
Plugin: DirectUpload
Plugin: SimplifyArea
Plugin: alignways
Plugin: dataimport
Plugin: download_along
Plugin: editgpx
Plugin: graphview
Plugin: mapdust
Plugin: measurement
Plugin: multipoly-convert
Plugin: openstreetbugs
Plugin: openvisible
Plugin: osmarender
Plugin: restart
Plugin: reverter
Plugin: tageditor
Plugin: undelete
Plugin: waypoint_search

	at java.util.Arrays.mergeSort(
	at java.util.Arrays.mergeSort(
	at java.util.Arrays.sort(
	at java.util.Collections.sort(
	at org.openstreetmap.josm.gui.tagging.TaggingPresetMenu.sortMenu(
	at org.openstreetmap.josm.gui.tagging.TaggingPresetMenu.sortMenu(
	at org.openstreetmap.josm.gui.preferences.TaggingPresetPreference.initialize(
	at org.openstreetmap.josm.Main.<init>(
	at org.openstreetmap.josm.gui.MainApplication.<init>(
	at org.openstreetmap.josm.gui.MainApplication.main(

Attachments (1)

de-hc-preset2.xml (9.1 KB ) - added by Fabi2 13 years ago.
My own preset for German the health care system.

Download all attachments as: .zip

Change History (3)

by Fabi2, 13 years ago

Attachment: de-hc-preset2.xml added

My own preset for German the health care system.

comment:1 by jttt, 13 years ago

Resolution: fixed
Status: newclosed

In [3839/josm]:

Fix #5893 Null Pointer Exception while loding custom presets at start - JOSM hangs on splash screen

comment:2 by jttt, 13 years ago

Problem is in your preset, every item and group needs to have name attribute.

Fixed is the NullPointerException and josm should now inform you that name is missing when you add the presets.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.