Add Null check for secureVaultRegex
+ This is required as setting null to a property throws an error
@@ -234,6 +234,8 @@ public class VaultTool {
}
String secureVaultRegex = properties.getProperty(Constants.SECURE_VALULT_PASSWORD_REGEX_SYSTEM_PROPERTY);
+ if (secureVaultRegex != null) {
System.setProperty(Constants.SECURE_VALULT_PASSWORD_REGEX_SYSTEM_PROPERTY, secureVaultRegex);
}
}
+}
