aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1240636 - /aries/trunk/util/util-r42/src/main/java/org/apache/aries/util/AriesFrameworkUtil.java
Date Sat, 04 Feb 2012 22:53:43 GMT
Author: not
Date: Sat Feb  4 22:53:43 2012
New Revision: 1240636

URL: http://svn.apache.org/viewvc?rev=1240636&view=rev
Log:
ARIES-776 Cope with FrameworkUtil returning null for the Bundle.

Modified:
    aries/trunk/util/util-r42/src/main/java/org/apache/aries/util/AriesFrameworkUtil.java

Modified: aries/trunk/util/util-r42/src/main/java/org/apache/aries/util/AriesFrameworkUtil.java
URL: http://svn.apache.org/viewvc/aries/trunk/util/util-r42/src/main/java/org/apache/aries/util/AriesFrameworkUtil.java?rev=1240636&r1=1240635&r2=1240636&view=diff
==============================================================================
--- aries/trunk/util/util-r42/src/main/java/org/apache/aries/util/AriesFrameworkUtil.java
(original)
+++ aries/trunk/util/util-r42/src/main/java/org/apache/aries/util/AriesFrameworkUtil.java
Sat Feb  4 22:53:43 2012
@@ -32,7 +32,7 @@ public final class AriesFrameworkUtil 
   
   static {
     Bundle b = FrameworkUtil.getBundle(AriesFrameworkUtil.class);
-    String bundleClassName = b.getClass().getName();
+    String bundleClassName = b == null ? "": b.getClass().getName();
     if (isEquinox(bundleClassName)) {
       worker = new EquinoxWorker();
     } else if (bundleClassName.startsWith("org.apache.felix")) {



Mime
View raw message