Changeset 13393 in josm


Ignore:
Timestamp:
2018-02-09T19:44:51+01:00 (2 weeks ago)
Author:
Don-vip
Message:

fix #15898 - robustness when sun.java.command property cannot be retrieved

File:
1 edited

Legend:

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

    r13233 r13393  
    137137        // program main and program arguments (be careful a sun property. might not be supported by all JVM)
    138138        final String javaCommand = System.getProperty("sun.java.command");
     139        if (javaCommand == null) {
     140            throw new IOException("Unable to retrieve sun.java.command property");
     141        }
    139142        String[] mainCommand = javaCommand.split(" ");
    140143        if (javaCommand.endsWith(".jnlp") && jnlp == null) {
Note: See TracChangeset for help on using the changeset viewer.