mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 09:50:51 +01:00
Fixed Null Exception
This commit is contained in:
parent
c565092656
commit
f2e72b715e
@ -23,7 +23,7 @@ public class ConfigurationManager {
|
||||
public boolean loaded = false;
|
||||
public boolean isLoading = false;
|
||||
|
||||
public ConfigurationManager(String configurationPath) throws Exception {
|
||||
public ConfigurationManager(String configurationPath) {
|
||||
this.properties = new Properties();
|
||||
this.configurationPath = configurationPath;
|
||||
this.reload();
|
||||
@ -37,7 +37,12 @@ public class ConfigurationManager {
|
||||
|
||||
String envDbHostname = System.getenv("DB_HOSTNAME");
|
||||
|
||||
boolean useEnvVarsForDbConnection = envDbHostname != null && envDbHostname.length() > 1;
|
||||
boolean useEnvVarsForDbConnection = false;
|
||||
|
||||
if(envDbHostname != null)
|
||||
{
|
||||
useEnvVarsForDbConnection = envDbHostname.length() > 1;
|
||||
}
|
||||
|
||||
if (!useEnvVarsForDbConnection) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user