This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git


The following commit(s) were added to refs/heads/master by this push:
     new 3fcaed70 SLING-12965 Fix initialization of 
debugOptionsListenerRegistration
3fcaed70 is described below

commit 3fcaed70c72d61803eb1143339829d42dff3bc6f
Author: Konrad Windszus <[email protected]>
AuthorDate: Tue Oct 14 15:51:28 2025 +0200

    SLING-12965 Fix initialization of debugOptionsListenerRegistration
    
    This prevents the NPE during Tracer.deactivate()
---
 .../src/org/apache/sling/ide/eclipse/core/debug/impl/Tracer.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/debug/impl/Tracer.java
 
b/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/debug/impl/Tracer.java
index 0e0dfa3d..7ccf7d7c 100644
--- 
a/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/debug/impl/Tracer.java
+++ 
b/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/debug/impl/Tracer.java
@@ -47,7 +47,7 @@ public class Tracer implements DebugOptionsListener, 
LogSubscriber {
     @Activate
     public void activate(BundleContext context) {
         // defer registration of the DebugOptionsListener service until this 
component is activated, otherwise this bundle is eagerly loaded by Equinox
-        context.registerService(DebugOptionsListener.class, this, null);
+        debugOptionsListenerRegistration = 
context.registerService(DebugOptionsListener.class, this, null);
     }
 
     @Deactivate

Reply via email to