diff options
author | Jiri Vanek <[email protected]> | 2013-11-10 10:54:03 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-11-10 10:54:03 +0100 |
commit | cf63aa76a56b525aa72476725c5ce88f41ce39e9 (patch) | |
tree | 401836cf32731bfa430dfb70b10165b401fa9fff /netx | |
parent | cc383fcf7288977d01608d9da4d9d84d167e1aad (diff) |
Removed suspicious return when (searchForMain) had null launchDesc in netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java.
Diffstat (limited to 'netx')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index b2ea5f8..a9a84ba 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -828,11 +828,9 @@ public class JNLPClassLoader extends URLClassLoader { // Check launch info if (mainClass == null) { LaunchDesc launchDesc = file.getLaunchInfo(); - if (launchDesc == null) { - return; + if (launchDesc != null) { + mainClass = launchDesc.getMainClass(); } - - mainClass = launchDesc.getMainClass(); } // The main class may be specified in the manifest |