aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1071759 - /aries/branches/0.3-RCx/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/AbstractProxyManager.java
Date Thu, 17 Feb 2011 19:48:23 GMT
Author: gnodet
Date: Thu Feb 17 19:48:22 2011
New Revision: 1071759

URL: http://svn.apache.org/viewvc?rev=1071759&view=rev
Log:
[ARIES-563] The NamespaceHandlerRegistryImpl does not actually reuse parsed schemas - fix
proxy NPE that causes iTest failures

Modified:
    aries/branches/0.3-RCx/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/AbstractProxyManager.java

Modified: aries/branches/0.3-RCx/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/AbstractProxyManager.java
URL: http://svn.apache.org/viewvc/aries/branches/0.3-RCx/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/AbstractProxyManager.java?rev=1071759&r1=1071758&r2=1071759&view=diff
==============================================================================
--- aries/branches/0.3-RCx/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/AbstractProxyManager.java
(original)
+++ aries/branches/0.3-RCx/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/AbstractProxyManager.java
Thu Feb 17 19:48:22 2011
@@ -70,7 +70,7 @@ public abstract class AbstractProxyManag
   
   public final boolean isProxy(Object proxy)
   {
-    return (getInvocationHandler(proxy) instanceof ProxyHandler);
+    return (proxy != null && getInvocationHandler(proxy) instanceof ProxyHandler);
   }
   
   protected abstract Object createNewProxy(Bundle clientBundle, Collection<Class<?>>
classes,



Mime
View raw message