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

This commit is contained in:
norris%netscape.com 2000-02-28 18:38:37 +00:00
Родитель b5a79f600f
Коммит dfb69c7a8d
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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...