Missed a null check

This commit is contained in:
Darren Shepherd 2013-11-06 09:43:57 -07:00
parent 56070c644b
commit 68ce3f56ac

View File

@ -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);