Changeset 15478 in josm


Ignore:
Timestamp:
2019-10-27T13:16:45+01:00 (5 months ago)
Author:
Don-vip
Message:

fix #16921 - fix NPE when running ELI sync script without prior preferences file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.java

    r15440 r15478  
    5050import org.openstreetmap.josm.data.imagery.Shape;
    5151import org.openstreetmap.josm.data.preferences.JosmBaseDirectories;
     52import org.openstreetmap.josm.data.preferences.JosmUrls;
    5253import org.openstreetmap.josm.data.projection.Projections;
    5354import org.openstreetmap.josm.data.validation.routines.DomainValidator;
     
    118119        Locale.setDefault(Locale.ROOT);
    119120        parseCommandLineArguments(args);
     121        Config.setUrlsProvider(JosmUrls.getInstance());
    120122        Preferences pref = new Preferences(JosmBaseDirectories.getInstance());
    121123        Config.setPreferencesInstance(pref);
Note: See TracChangeset for help on using the changeset viewer.