Hi, am i using the queries out of context?
I use runtimeService.createExecutionQuery() to find an Execution.
execution.getTasks() throws NullPointerException because processEngineConfiguration is null in the method below.
`protected void ensureTasksInitialized() {
if (tasks == null) {
ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration();
tasks = processEngineConfiguration.getTaskServiceConfiguration().getTaskService().findTasksByExecutionId(id);
}
}`
Why would that be when the execution is still active?