tjwatson commented on code in PR #438:
URL: https://github.com/apache/felix-dev/pull/438#discussion_r2279583999


##########
scr/src/main/java/org/apache/felix/scr/impl/Activator.java:
##########
@@ -225,8 +225,11 @@ protected void doStart() throws Exception
 
         super.doStart();
 
-        m_componentCommands = new ComponentCommands(m_context, 
m_globalContext, runtime, m_configuration);
-        m_componentCommands.register();
+        if(m_configuration.isCommandsEnabled()) {
+            m_componentCommands = new ComponentCommands(m_context, 
m_globalContext, runtime, m_configuration);
+            m_componentCommands.register();
+        }
+
         
m_componentCommands.updateProvideScrInfoService(m_configuration.infoAsService());

Review Comment:
   Does this not cause a `NullpointerException`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@felix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to