changeset 772:719431dbd56c

Fixed NPE in getting the attribute
author Jiri Vanek <jvanek@redhat.com>
date Thu, 14 Nov 2013 10:56:29 +0100
parents 9bf2d89511a4
children 461eb0b77b53
files netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Wed Nov 13 11:54:42 2013 -0500
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Thu Nov 14 10:56:29 2013 +0100
@@ -805,6 +805,10 @@
      */
     public String checkForAttributeInJars(List<JARDesc> jars, Attributes.Name name) {
        
+        if (jars.isEmpty()) {
+            return null;
+        }
+
         String result = null;
         
         // Check main jar