Skip to content

Commit

Permalink
Fix NPE will run webtests against engine
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-lli authored Sep 11, 2024
1 parent db930fb commit b14c6b6
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 b14c6b6

Please sign in to comment.