org/sonews/config/BackendConfig.java
changeset 12 bb6990c0dd1a
parent 3 2fdc9cc89502
child 15 f2293e8566f5
     1.1 --- a/org/sonews/config/BackendConfig.java	Wed Jul 22 14:04:05 2009 +0200
     1.2 +++ b/org/sonews/config/BackendConfig.java	Thu Aug 20 14:31:19 2009 +0200
     1.3 @@ -62,6 +62,12 @@
     1.4        String configValue = values.get(key);
     1.5        if(configValue == null)
     1.6        {
     1.7 +        if(StorageManager.current() == null)
     1.8 +        {
     1.9 +          Log.msg("Warning: BackendConfig not available, using default.", false);
    1.10 +          return defaultValue;
    1.11 +        }
    1.12 +
    1.13          configValue = StorageManager.current().getConfigValue(key);
    1.14          if(configValue == null)
    1.15          {