diff options
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx')
-rw-r--r-- | dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java index ea3c7ae0..df0349fa 100644 --- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java +++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java @@ -16,12 +16,14 @@ public class RuntimeConfig { @Override protected SatelliteConfig update() { - SatelliteConfig satConfig, readConfig; + SatelliteConfig satConfig = null, readConfig = null; try { readConfig = DbConfiguration.getSatelliteConfig(); - satConfig = readConfig.deepCopy(); } catch (SQLException e) { - readConfig = satConfig = null; + // Fall through + } + if (readConfig != null) { + satConfig = readConfig.deepCopy(); } if (satConfig == null) { satConfig = new SatelliteConfig(); |