Skip to content

Commit 289211d

Browse files
committed
avoid NPE on ansible util
1 parent 0abe20d commit 289211d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/rundeck/plugins/ansible/util/AnsibleUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static String randomString(){
124124

125125
public static String getCustomTmpPathDir(Framework framework){
126126
String customTmpDir = framework.getPropertyLookup().getProperty("framework.tmp.dir");
127-
if (customTmpDir.isEmpty()) {
127+
if (customTmpDir == null || customTmpDir.isEmpty()) {
128128
customTmpDir = System.getProperty("java.io.tmpdir");
129129
}
130130
return customTmpDir;

0 commit comments

Comments
 (0)