Ignore:
Timestamp:
2017-02-28T22:54:27+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #14422 - Dynamic NTV2 grids

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r11510 r11642  
    113113import org.openstreetmap.josm.tools.Territories;
    114114import org.openstreetmap.josm.tools.Utils;
     115import org.openstreetmap.josm.tools.bugreport.BugReport;
    115116
    116117/**
     
    523524
    524525        // This needs to be done before RightAndLefthandTraffic::initialize is called
    525         new InitializationTask(tr("Initializing internal boundaries data"), Territories::initialize).call();
     526        try {
     527            new InitializationTask(tr("Initializing internal boundaries data"), Territories::initialize).call();
     528        } catch (JosmRuntimeException e) {
     529            // Can happen if the current projection needs NTV2 grid which is not available
     530            // In this case we want the user be able to change his projection
     531            BugReport.intercept(e).warn();
     532        }
    526533
    527534        // contains several initialization tasks to be executed (in parallel) by a ExecutorService
Note: See TracChangeset for help on using the changeset viewer.