cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1404969 - /cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/RemoteServiceAdminCore.java
Date Fri, 02 Nov 2012 14:09:53 GMT
Author: cschneider
Date: Fri Nov  2 14:09:53 2012
New Revision: 1404969

URL: http://svn.apache.org/viewvc?rev=1404969&view=rev
Log:
DOSGI-120 Added a safeguard vs to avoid NPE

Modified:
    cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/RemoteServiceAdminCore.java

Modified: cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/RemoteServiceAdminCore.java
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/RemoteServiceAdminCore.java?rev=1404969&r1=1404968&r2=1404969&view=diff
==============================================================================
--- cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/RemoteServiceAdminCore.java
(original)
+++ cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/RemoteServiceAdminCore.java
Fri Nov  2 14:09:53 2012
@@ -302,7 +302,7 @@ public class RemoteServiceAdminCore impl
     }
 
     private boolean isCreatedByThisRSA(ServiceReference sref) {
-        return sref.getBundle().equals(bctx.getBundle());
+        return (sref.getBundle() != null ) && sref.getBundle().equals(bctx.getBundle());
     }
 
     public Collection<ExportReference> getExportedServices() {



Mime
View raw message