[ http://jira.codehaus.org/browse/JBEHAVE-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=248754#action_248754 ]
Paul Hammant commented on JBEHAVE-400: -------------------------------------- See the Etsy tutorial. If you change the WebDriver sys-prop to 'DoesNotExist' and run the tests, you'll get the NPE described in this bug report. It is because new FirefoxDriver() fails during the initialize() of WebDriverProvider as described, but that is totally hidden by a reference to StoryRunner.runner being null and causing a NPE. - Paul > Error in WebDriverProvider intialize method ignored because of consequential > NPE for StoryRunner.reporter > --------------------------------------------------------------------------------------------------------- > > Key: JBEHAVE-400 > URL: http://jira.codehaus.org/browse/JBEHAVE-400 > Project: JBehave > Issue Type: Bug > Components: Web Selenium > Affects Versions: 3.2 > Reporter: Paul Hammant > Attachments: BadlyInitializingWebDriverStepsTest.java > > > {noformat} > new WebDriverProvider() { > public void initialize() { > throw new RuntimeException(); // or Error or something > } > } > {noformat} > ... does not get reported. It's consumed because of a later NPE > The NPE is in StoryRunner, concerning member variable 'reporter' which is not > set before use, in this situation. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email