Saga - Encountering NullPointerException when using async executor

I tried configuring an Asynch Executor with the saga manager for asynchronous execution of my saga, but I am getting a NullPointerException. If I remove the asynch executor the saga works fine.

Axon versions used : Tried with 2.4.4 and 2.4.3

My Spring configuration is as follows,

<axon:saga-manager id="sagaManager" saga-repository="sagaRepository" correlation-data-provider="simpleCorrelationDataProvider">
    <axon:async executor="taskExecutor" transaction-manager="transactionManager" />

Please note that I use the following for publishing the events from my aggregates,

**CurrentUnitOfWork.get().publishEvent(new GenericEventMessage<Object>(eventObj), DomainRegistry.eventBus());**

Hi Ranjit,

it looks like the AsyncSagaEventProcessor fails to do a null-check. So it’s probably an issue in there.

However, this is the first time in a very long time that it pops up. Makes me wonder what’s different in your situation.