Changeset 7493 in josm for trunk


Ignore:
Timestamp:
2014-09-04T20:21:46+02:00 (10 years ago)
Author:
Don-vip
Message:

fix HeadlessException when running java -jar josm.jar --help

File:
1 edited

Legend:

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

    r7434 r7493  
    353353        Main.pref.updateSystemProperties();
    354354
     355        // asking for help? show help and exit
     356        if (args.containsKey(Option.HELP)) {
     357            showHelp();
     358            System.exit(0);
     359        }
     360
    355361        processOffline(args);
    356362
     
    384390        ProxySelector.setDefault(proxySelector);
    385391        OAuthAccessTokenHolder.getInstance().init(Main.pref, CredentialsManager.getInstance());
    386 
    387         // asking for help? show help and exit
    388         if (args.containsKey(Option.HELP)) {
    389             showHelp();
    390             System.exit(0);
    391         }
    392392
    393393        final SplashScreen splash = new SplashScreen();
Note: See TracChangeset for help on using the changeset viewer.