Bug 338896 - isXPCOMJavaProxy throws NullPointerException. XULRunner only. r=apeller, a=dveditz

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@199992 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com
2006-06-15 16:21:10 +00:00
parent fe81764d66
commit ac91491cc7

View File

@@ -187,7 +187,7 @@ public class XPCOMJavaProxy implements InvocationHandler {
* <code>false</code> otherwise
*/
protected static boolean isXPCOMJavaProxy(Object aObject) {
if (Proxy.isProxyClass(aObject.getClass())) {
if (aObject != null && Proxy.isProxyClass(aObject.getClass())) {
InvocationHandler h = Proxy.getInvocationHandler(aObject);
if (h instanceof XPCOMJavaProxy) {
return true;