Changeset 16225 in josm for trunk


Ignore:
Timestamp:
2020-04-04T11:08:03+02:00 (4 years ago)
Author:
simon04
Message:

MainApplication.getCommandLineArgs: fix NPE

File:
1 edited

Legend:

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

    r16120 r16225  
    412412     */
    413413    public static List<String> getCommandLineArgs() {
    414         return Collections.unmodifiableList(commandLineArgs);
     414        return commandLineArgs == null
     415                ? Collections.emptyList()
     416                : Collections.unmodifiableList(commandLineArgs);
    415417    }
    416418
Note: See TracChangeset for help on using the changeset viewer.