Ignore:
Timestamp:
2017-05-29T15:43:26+02:00 (2 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/plugins/PluginHandler.java

    r11974 r12273  
    610610                        Main.pref.putCollection("plugins", plugins);
    611611                        // restart
    612                         new RestartAction().actionPerformed(null);
     612                        try {
     613                            RestartAction.restartJOSM();
     614                        } catch (IOException e) {
     615                            Main.error(e);
     616                        }
    613617                    } else {
    614618                        Main.warn("No plugin downloaded, restart canceled");
Note: See TracChangeset for help on using the changeset viewer.