Ignore:
Timestamp:
2017-05-29T15:43:26+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #14850 - NPE on launch: make sure RestartAction (and all the GUI stuff behind) is not constructed before GUI is fully initialized

File:
1 edited

Legend:

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

    r12150 r12273  
    498498                    Main.info(tr("Detected no useable IPv6 network, prefering IPv4 over IPv6 after next restart."));
    499499                    Main.pref.put("validated.ipv6", hasv6); // be sure it is stored before the restart!
    500                     new RestartAction().actionPerformed(null);
     500                    try {
     501                        RestartAction.restartJOSM();
     502                    } catch (IOException e) {
     503                        Main.error(e);
     504                    }
    501505                }
    502506                Main.pref.put("validated.ipv6", hasv6);
Note: See TracChangeset for help on using the changeset viewer.