aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1236761 - /aries/trunk/sandbox/jmx-next/jmx-core/src/main/java/org/apache/aries/jmx/framework/wiring/BundleWiringState.java
Date Fri, 27 Jan 2012 17:00:14 GMT
Author: davidb
Date: Fri Jan 27 17:00:14 2012
New Revision: 1236761

URL: http://svn.apache.org/viewvc?rev=1236761&view=rev
Log:
Fix for a NPE exposed by the TCK.

Modified:
    aries/trunk/sandbox/jmx-next/jmx-core/src/main/java/org/apache/aries/jmx/framework/wiring/BundleWiringState.java

Modified: aries/trunk/sandbox/jmx-next/jmx-core/src/main/java/org/apache/aries/jmx/framework/wiring/BundleWiringState.java
URL: http://svn.apache.org/viewvc/aries/trunk/sandbox/jmx-next/jmx-core/src/main/java/org/apache/aries/jmx/framework/wiring/BundleWiringState.java?rev=1236761&r1=1236760&r2=1236761&view=diff
==============================================================================
--- aries/trunk/sandbox/jmx-next/jmx-core/src/main/java/org/apache/aries/jmx/framework/wiring/BundleWiringState.java
(original)
+++ aries/trunk/sandbox/jmx-next/jmx-core/src/main/java/org/apache/aries/jmx/framework/wiring/BundleWiringState.java
Fri Jan 27 17:00:14 2012
@@ -113,6 +113,9 @@ public class BundleWiringState implement
     private void populateTransitiveRevisions(String namespace, BundleRevision rootRevision,
Map<BundleRevision, Integer> allRevisions) {
         allRevisions.put(rootRevision, System.identityHashCode(rootRevision));
         BundleWiring wiring = rootRevision.getWiring();
+        if (wiring == null)
+            return;
+
         List<BundleWire> wires = wiring.getRequiredWires(namespace);
         for (BundleWire wire : wires) {
             BundleRevision revision = wire.getCapability().getRevision();



Mime
View raw message