From bdfe80b400bc681a3fe4ae078392fd3dfff0fc6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gro=C3=9Fmann?= Date: Mon, 14 Oct 2024 09:07:26 +0200 Subject: [PATCH] Fix the NPE fix --- .../plugins/appium/seetest/webdriver/SeeTestVideoFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appium-seetest/src/main/java/io/testerra/plugins/appium/seetest/webdriver/SeeTestVideoFactory.java b/appium-seetest/src/main/java/io/testerra/plugins/appium/seetest/webdriver/SeeTestVideoFactory.java index 1f4af96..998b86c 100644 --- a/appium-seetest/src/main/java/io/testerra/plugins/appium/seetest/webdriver/SeeTestVideoFactory.java +++ b/appium-seetest/src/main/java/io/testerra/plugins/appium/seetest/webdriver/SeeTestVideoFactory.java @@ -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");