Skip to content

Commit

Permalink
Merge pull request #265 from axonivy/fix
Browse files Browse the repository at this point in the history
Fix NPE will run webtests against engine
  • Loading branch information
ivy-lli authored Sep 11, 2024
2 parents db930fb + b14c6b6 commit 2fc0e2a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2fc0e2a

Please sign in to comment.