Changeset 16814 in josm


Ignore:
Timestamp:
2020-08-02T15:30:12+02:00 (3 months ago)
Author:
simon04
Message:

fix #19612 - NPE when running RenderingCLI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/RenderingCLI.java

    r16643 r16814  
    3939import org.openstreetmap.josm.spi.preferences.Config;
    4040import org.openstreetmap.josm.spi.preferences.MemoryPreferences;
     41import org.openstreetmap.josm.tools.Http1Client;
     42import org.openstreetmap.josm.tools.HttpClient;
    4143import org.openstreetmap.josm.tools.JosmDecimalFormatSymbolsProvider;
    4244import org.openstreetmap.josm.tools.Logging;
     
    431433    void initialize() {
    432434        Logging.setLogLevel(getLogLevel());
     435        HttpClient.setFactory(Http1Client::new);
    433436
    434437        Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance()); // for right-left-hand traffic cache file
     
    439442        ProjectionRegistry.setProjection(Projections.getProjectionByCode(projCode.toUpperCase(Locale.US)));
    440443
    441         Territories.initialize();
     444        Territories.initializeInternalData();
    442445    }
    443446
Note: See TracChangeset for help on using the changeset viewer.