Bug 338896 - isXPCOMJavaProxy throws NullPointerException. r=apeller.

This commit is contained in:
[email protected] committed 2006-05-30 16:18:10 +00:00
1 parent da4745bf88
commit ff84eb8cff
1 file changed
+1 -1
+1 -1
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;