Bug 338896 - isXPCOMJavaProxy throws NullPointerException. r=apeller.

Original committer: pedemont%us.ibm.com
Original revision: 1.5
Original date: 2006/05/30 16:18:10
This commit is contained in:
pedemont%us.ibm.com 2006-09-27 15:13:30 +00:00
Родитель 81ac92b2dc
Коммит 3db1dd564d
1 изменённых файлов: 1 добавлений и 1 удалений

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

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