incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1603857 - /sling/trunk/contrib/crankstart/core/src/main/java/org/apache/sling/crankstart/core/CrankstartFileProcessor.java
Date Thu, 19 Jun 2014 12:23:07 GMT
Author: bdelacretaz
Date: Thu Jun 19 12:23:07 2014
New Revision: 1603857

URL: http://svn.apache.org/r1603857
Log:
Ignore null framework

Modified:
    sling/trunk/contrib/crankstart/core/src/main/java/org/apache/sling/crankstart/core/CrankstartFileProcessor.java

Modified: sling/trunk/contrib/crankstart/core/src/main/java/org/apache/sling/crankstart/core/CrankstartFileProcessor.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/crankstart/core/src/main/java/org/apache/sling/crankstart/core/CrankstartFileProcessor.java?rev=1603857&r1=1603856&r2=1603857&view=diff
==============================================================================
--- sling/trunk/contrib/crankstart/core/src/main/java/org/apache/sling/crankstart/core/CrankstartFileProcessor.java
(original)
+++ sling/trunk/contrib/crankstart/core/src/main/java/org/apache/sling/crankstart/core/CrankstartFileProcessor.java
Thu Jun 19 12:23:07 2014
@@ -143,6 +143,9 @@ public class CrankstartFileProcessor imp
     /** Reload our extension commands from the OSGi framework 
      * @throws InvalidSyntaxException */
     private synchronized void reloadExtensionCommands() throws InvalidSyntaxException {
+        if(crankstartContext.getOsgiFramework() == null) {
+            return;
+        }
         extensionCommands.clear();
         final BundleContext bc = crankstartContext.getOsgiFramework().getBundleContext();
         final ServiceReference [] refs = bc.getServiceReferences(CrankstartCommand.class.getName(),
null);



Mime
View raw message