Lazy init may still have some teething issues.  Please provide a patch.

> On 11 Jun 2014, at 10:46, Hans Schwäbli <bugs.need.love....@gmail.com> wrote:
> 
> 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(...)

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to