Some users with JDK 1.1 but JDK 1.2 security were getting NullPointerExceptions here.

git-svn-id: svn://10.0.0.236/trunk@61793 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
norris%netscape.com 2000-02-28 18:38:37 +00:00
parent ece789dd19
commit 612a23d049
2 changed files with 4 additions and 2 deletions

View File

@ -2118,7 +2118,8 @@ public class ScriptRuntime {
getContextClassLoaderMethod.invoke(
Thread.currentThread(),
new Object[0]);
return cl.loadClass(className);
if (cl != null)
return cl.loadClass(className);
}
} catch (SecurityException e) {
// fall through...

View File

@ -2118,7 +2118,8 @@ public class ScriptRuntime {
getContextClassLoaderMethod.invoke(
Thread.currentThread(),
new Object[0]);
return cl.loadClass(className);
if (cl != null)
return cl.loadClass(className);
}
} catch (SecurityException e) {
// fall through...