summaryrefslogtreecommitdiffstats
path: root/src/org
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2007-07-21 00:11:26 +0000
committerKenneth Russel <[email protected]>2007-07-21 00:11:26 +0000
commit1fbea84d0076517eb66093e37f1342ebe47b4e12 (patch)
treec01e3841c4e5971522a2046235748aac87ee7c85 /src/org
parent1d260119d250f3e53f2fa886b224f3e402ea8d82 (diff)
Changed loadLibrary to raise UnsatisfiedLinkError instead of
NullPointerException if requested library didn't exist in the download map based on suggestion from Brian Burkhalter from JAI team
Diffstat (limited to 'src/org')
-rw-r--r--src/org/jdesktop/applet/util/JNLPAppletLauncher.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/org/jdesktop/applet/util/JNLPAppletLauncher.java b/src/org/jdesktop/applet/util/JNLPAppletLauncher.java
index 7237f7d..1fd7183 100644
--- a/src/org/jdesktop/applet/util/JNLPAppletLauncher.java
+++ b/src/org/jdesktop/applet/util/JNLPAppletLauncher.java
@@ -37,8 +37,8 @@
* intended for use in the design, construction, operation or
* maintenance of any nuclear facility.
*
- * $Revision: 1.18 $
- * $Date: 2007/07/20 23:59:42 $
+ * $Revision: 1.19 $
+ * $Date: 2007/07/21 00:11:26 $
* $State: Exp $
*/
@@ -1878,6 +1878,11 @@ public class JNLPAppletLauncher extends Applet {
}
String fullLibraryName = (String) nativeLibMap.get(libraryName);
+ if (fullLibraryName == null) {
+ // Throw UnsatisfiedLinkError to try to match behavior of System.loadLibrary()
+ throw new UnsatisfiedLinkError(libraryName);
+ }
+
if (DEBUG) {
System.err.println(" loading: " + fullLibraryName + "");
}