mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40:52 +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 loaded = false;
|
||||||
public boolean isLoading = false;
|
public boolean isLoading = false;
|
||||||
|
|
||||||
public ConfigurationManager(String configurationPath) throws Exception {
|
public ConfigurationManager(String configurationPath) {
|
||||||
this.properties = new Properties();
|
this.properties = new Properties();
|
||||||
this.configurationPath = configurationPath;
|
this.configurationPath = configurationPath;
|
||||||
this.reload();
|
this.reload();
|
||||||
@ -37,7 +37,12 @@ public class ConfigurationManager {
|
|||||||
|
|
||||||
String envDbHostname = System.getenv("DB_HOSTNAME");
|
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) {
|
if (!useEnvVarsForDbConnection) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user