Skip to content

Commit

Permalink
Fix the NPE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martingrossmann committed Oct 14, 2024
1 parent 317ddd7 commit bdfe80b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void accept(WebDriver webDriver) {

String reportTestId = WEB_DRIVER_MANAGER.unwrapWebDriver(webDriver, AppiumDriver.class)
.map(driver -> driver.getCapabilities().getCapability("reportTestId"))
.map(Objects::nonNull)
.filter(Objects::nonNull)
.map(Object::toString)
.orElse("na");

Expand Down

0 comments on commit bdfe80b

Please sign in to comment.