From 05f7b48c5bcde2e4416f11d17cb5cce34657b6e7 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Thu, 14 Nov 2013 10:57:24 +0100 Subject: Fixed NPE in getting the attribute --- netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'netx') 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 jars, Attributes.Name name) { + if (jars.isEmpty()) { + return null; + } + String result = null; // Check main jar -- cgit v1.2.3