When I disable my selfhosted (Windows 10) runner in Bitbucket, I get the following error. After that I need to restart the runner (hosted as a Windows Service) manually. The same error occurs when I run it as console app, started with cmd/Powershell, instead of a Windows Service.
Exception in thread "Thread-0" java.lang.NullPointerException
at com.atlassian.pipelines.common.trace.rxjava.util.BraveUtil.lambda$withOptionalSpanInScope$0(BraveUtil.java:19)
at java.base/java.util.Optional.map(Optional.java:265)
at com.atlassian.pipelines.common.trace.rxjava.util.BraveUtil.withOptionalSpanInScope(BraveUtil.java:19)
at com.atlassian.pipelines.runner.core.util.RunnableWithContext.run(RunnableWithContext.java:31)
at java.base/java.lang.Thread.run(Thread.java:829)