]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/org/argeo/slc/osgi/OsgiExecutionModulesManager.java
SLC Agent starting
[gpl/argeo-slc.git] / org.argeo.slc.core / src / org / argeo / slc / osgi / OsgiExecutionModulesManager.java
index 68fcead713e53873713a7c87f2466e0dbeabf523..5718f2df025524dcd868713f7886e05548a54f40 100644 (file)
@@ -225,8 +225,8 @@ public class OsgiExecutionModulesManager extends
                                + flowName + "))"
                                : "(&(Bundle-SymbolicName=" + moduleName + ")(Bundle-Version="
                                                + moduleVersion
-                                               + ")(org.eclipse.gemini.blueprint.bean.name=" + flowName
-                                               + "))";
+                                               + ")(org.eclipse.gemini.blueprint.bean.name="
+                                               + flowName + "))";
                return bundlesManager.getSingleServiceStrict(ExecutionFlow.class,
                                filter, true);
        }
@@ -457,6 +457,9 @@ public class OsgiExecutionModulesManager extends
        /** Unregisters an execution context. */
        public synchronized void unregister(ExecutionContext executionContext,
                        Map<String, String> properties) {
+               // FIXME why are properties null?
+               if (properties == null)
+                       return;
                OsgiBundle osgiBundle = asOsgiBundle(properties);
                if (executionContexts.containsKey(osgiBundle)) {
                        executionContexts.remove(osgiBundle);
@@ -493,6 +496,9 @@ public class OsgiExecutionModulesManager extends
        /** Unregisters an execution flow. */
        public synchronized void unregister(ExecutionFlow executionFlow,
                        Map<String, String> properties) {
+               // FIXME why are properties null?
+               if(properties==null)
+                       return;
                OsgiBundle osgiBundle = asOsgiBundle(properties);
                if (executionFlows.containsKey(osgiBundle)) {
                        Set<ExecutionFlow> flows = executionFlows.get(osgiBundle);