Skip to content

Commit

Permalink
avoid NPE on ansible util
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus-Osuna-M committed Nov 22, 2024
1 parent 0abe20d commit 289211d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static String randomString(){

public static String getCustomTmpPathDir(Framework framework){
String customTmpDir = framework.getPropertyLookup().getProperty("framework.tmp.dir");
if (customTmpDir.isEmpty()) {
if (customTmpDir == null || customTmpDir.isEmpty()) {
customTmpDir = System.getProperty("java.io.tmpdir");
}
return customTmpDir;
Expand Down

0 comments on commit 289211d

Please sign in to comment.