NPE with Process Test Coverage and Link Events


#1

I tried to use the test coverage (https://github.com/camunda/camunda-bpm-process-test-coverage) with a simple Workflow just using a link event (see https://docs.camunda.org/manual/7.8/reference/bpmn20/events/link-events/#camunda-extensions). The unit tests throws a NPE at

at org.camunda.bpm.extension.process_test_coverage.listeners.IntermediateEventExecutionListener.notify(IntermediateEventExecutionListener.java:32)

With using StandaloneInMemProcessEngineConfiguration instead of ProcessCoverageInMemProcessEngineConfiguration in camunda.cfg.xml the test works fine.


#2

Hi Andreas,

We need more details like complete stacktrace of the exception, the process xml and the code.
If you can share a project on github which reproduce the problem would be perfect.

Best regards,
Yana


#3

Hi Yana,

of course, please check out https://github.com/zene22/camunda_npe_problem_link_events.git for reproduction of the problem.


#4

Hi Andreas,

The initialization of PathCoverageParseListener#coverageTestRunState is not done for some reason, so I think
it is better if you open an issue in the project (1).

(1): https://github.com/camunda/camunda-bpm-process-test-coverage/issues

Best regards,
Yana