StoryRunner failure strategy is not set when running before or after stories steps in multiple threads

Description

I got following exception when building attached project (mvn clean install):

-------------------------------------------------------------------------------
Test set: pl.mmadej.jbehave.JBehaveStoriesTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.562 sec <<< FAILURE!
[run_with_no_replacement.story](pl.mmadej.jbehave.JBehaveStoriesTest) Time elapsed: 0.343 sec <<< ERROR!
org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running before or after stories steps
at org.jbehave.core.embedder.Embedder.runStoriesAsPaths(Embedder.java:210)
at pl.mmadej.jbehave.JBehaveStoriesTest.run(JBehaveStoriesTest.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Please investigate. This error happens with jbehave 3.4. When I'm using 3.3.2 everything looks ok.
Internally there is NPE in StoryRunner:76 – currentStrategy.get().handleFailure(storyFailure.get());
currentStrategy.get() returns null.

Please investigate.
Thanks in advance for your help

Assignee

Unassigned

Reporter

Maciej Madej

Labels

None

Components

Fix versions

Affects versions

Priority

Critical
Configure