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:
parent
ece789dd19
commit
612a23d049
@ -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...
|
||||
|
||||
@ -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...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user