mirror of https://github.com/apache/nifi.git
NIFI-914: If no krb5 file set in nifi properties, treat it the same as an empty string set
This commit is contained in:
parent
cd2e1424cb
commit
e4e263c292
|
@ -803,8 +803,9 @@ public class NiFiProperties extends Properties {
|
|||
}
|
||||
|
||||
public File getKerberosConfigurationFile() {
|
||||
if (getProperty(KERBEROS_KRB5_FILE).trim().length() > 0) {
|
||||
return new File(getProperty(KERBEROS_KRB5_FILE));
|
||||
final String krb5File = getProperty(KERBEROS_KRB5_FILE);
|
||||
if (krb5File != null && krb5File.trim().length() > 0) {
|
||||
return new File(krb5File.trim());
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue