Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#4501 closed defect (fixed)

NPE in AutoCompletion init when launching from dev tree

Reported by: Gubaer Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

Probably due to the fact that the location of the presets file isn't the same in the JAR and in the dev tree.

java.lang.NullPointerException

at org.openstreetmap.josm.gui.tagging.ac.AutoCompletionCache.cachePresets(AutoCompletionCache.java:153)
at org.openstreetmap.josm.gui.preferences.TaggingPresetPreference.initialize(TaggingPresetPreference.java:90)
at org.openstreetmap.josm.Main.<init>(Main.java:208)
at org.openstreetmap.josm.gui.MainApplication.<init>(MainApplication.java:49)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:193)

Change History (3)

comment:1 by bastiK, 15 years ago

Resolution: fixed
Status: newclosed

(In [2960]) fixed #4501 - NPE in AutoCompletion init when launching from dev tree

comment:2 by bastiK, 15 years ago

I forgot to do some checks for null values. I don't understand what you mean by dev tree. If the presets show up in the menu, this should work as well. The error would show up if you had a custom preset file and some (optional?) attributes are missing.

comment:3 by Gubaer, 15 years ago

My bad. This was a first guess. I fixed it myself too, but you're speed is hard to beat ;-)

I guess, thought, that there is somewhere a combo element without values attribute in the presets file. I'm currently trying to find out where.

Add Comment


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