diff options
author | Omair Majid <[email protected]> | 2011-05-27 12:45:05 -0400 |
---|---|---|
committer | Omair Majid <[email protected]> | 2011-05-27 12:45:05 -0400 |
commit | c571fe4ca9753affefee9be384868630b24a479f (patch) | |
tree | 9f4d8a48c445ce17a4785f8d583527ab84005b1c /netx/net/sourceforge | |
parent | 3b596abbf0bea7954b32a6104ddf65ab4000dbdd (diff) |
PR724: Possible NullPointerException in JNLPClassLoader.getClassPathsFromManifest
2011-05-27 Omair Majid <[email protected]>
* NEWS: Update.
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
(getClassPathsFromManifest): Check for possible nulls and empty strings.
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index 27c0fcd..27e1538 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -1375,6 +1375,9 @@ public class JNLPClassLoader extends URLClassLoader { if (mf != null) { // extract the Class-Path entries from the manifest and split them String classpath = mf.getMainAttributes().getValue("Class-Path"); + if (classpath == null || classpath.trim().length() == 0) { + return result; + } String[] paths = classpath.split(" +"); for (String path : paths) { if (path.trim().length() == 0) { |