From cf63aa76a56b525aa72476725c5ce88f41ce39e9 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Sun, 10 Nov 2013 10:54:03 +0100 Subject: Removed suspicious return when (searchForMain) had null launchDesc in netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java. --- netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'netx') 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 -- cgit v1.2.3