testproject-io / java-opensdk

TestProject Java OpenSDK
Apache License 2.0
50 stars 42 forks source link

Avoid null pointer exception when creating Generic driver in Cucumber test. #87

Closed DavidG8168 closed 3 years ago

DavidG8168 commented 3 years ago

If running Cucumber, when creating the reporter, it will attempt to disable the auto test and command reports, it will then cause a null pointer exception when the reporting command executor has not been created yet when using a Generic driver.

Signed-off-by: david_goichman david.goichman@testproject.io

DavidG8168 commented 3 years ago

There are other ways to handle this, like checking if the driver is generic and not disabling auto tests and command reports, since it doesn't have them, or checking if the executor is null before disabling the tests and command reports.