From b14c6b62446dc229704fdcd84ffae5054f80b3bf Mon Sep 17 00:00:00 2001 From: Lukas <42733123+ivy-lli@users.noreply.github.com> Date: Wed, 11 Sep 2024 08:25:29 +0200 Subject: [PATCH] Fix NPE will run webtests against engine --- .../java/com/axonivy/ivy/webtest/IvyTestRuntimeProps.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web-tester/src/main/java/com/axonivy/ivy/webtest/IvyTestRuntimeProps.java b/web-tester/src/main/java/com/axonivy/ivy/webtest/IvyTestRuntimeProps.java index df36504..93dabb8 100644 --- a/web-tester/src/main/java/com/axonivy/ivy/webtest/IvyTestRuntimeProps.java +++ b/web-tester/src/main/java/com/axonivy/ivy/webtest/IvyTestRuntimeProps.java @@ -20,7 +20,9 @@ public static Properties loadProps() { var props = new Properties(); ClassLoader loader = IvyWebTestExtension.class.getClassLoader(); try(var in = loader.getResourceAsStream(RT_PROPS)) { - props.load(in); + if (in != null) { + props.load(in); + } } catch (Exception ex) { System.err.println("Failed to read properties " + RT_PROPS); ex.printStackTrace();