mirror of https://github.com/apache/cloudstack.git
Missed a null check
This commit is contained in:
parent
56070c644b
commit
68ce3f56ac
|
|
@ -65,12 +65,15 @@ public class DbProperties {
|
|||
if ( is == null ) {
|
||||
is = PropertiesUtil.openStreamFromURL("db.properties");
|
||||
}
|
||||
|
||||
if ( is == null ) {
|
||||
System.err.println("Failed to find db.properties");
|
||||
log.error("Failed to find db.properties");
|
||||
}
|
||||
|
||||
dbProps.load(is);
|
||||
if ( is != null ) {
|
||||
dbProps.load(is);
|
||||
}
|
||||
|
||||
EncryptionSecretKeyChecker checker = new EncryptionSecretKeyChecker();
|
||||
checker.check(dbProps);
|
||||
|
|
|
|||
Loading…
Reference in New Issue