Hello Mauro,

today I had a NullPointerException at
org.jbehave.core.configuration.Configuration.doDryRun(Boolean) with JBehave
beta-6.

It was because this.storyControls was null.

Why don't you use storyControls().doDryRun(dryRun) instead of
this.storyControls.doDryRun(dryRun)?

Because the instance variable storyControls is lazy initialized in
storyControls() method, so a NPE never could occur.

My workaround now is first to call storyControls() method and after that
doDryRun(...)

Reply via email to