aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-11-14 10:57:24 +0100
committerJiri Vanek <[email protected]>2013-11-14 10:57:24 +0100
commit05f7b48c5bcde2e4416f11d17cb5cce34657b6e7 (patch)
tree2487e1e107c23daaac9c4638a2c2b2fd7d70612f
parent473c0d15605662712507f7aa3b3a5a136958dc5d (diff)
Fixed NPE in getting the attribute
-rw-r--r--netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
index 5b6ad87..3be3623 100644
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
@@ -779,6 +779,10 @@ public class JNLPClassLoader extends URLClassLoader {
*/
public String checkForAttributeInJars(List<JARDesc> jars, Attributes.Name name) {
+ if (jars.isEmpty()) {
+ return null;
+ }
+
String result = null;
// Check main jar