aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/configuration
diff options
context:
space:
mode:
authorBoris Grozev <boris@jitsi.org>2014-01-15 15:57:03 +0100
committerBoris Grozev <boris@jitsi.org>2014-01-15 15:57:47 +0100
commit2d240eb9acf82a893891d9377bffd8fda1a9e373 (patch)
tree87550a5c8476a4485aa526fc857e484e4924b03a /src/net/java/sip/communicator/impl/configuration
parent31bfe95307d6b113f0c6cbb28a6af74517731bef (diff)
downloadjitsi-2d240eb9acf82a893891d9377bffd8fda1a9e373.zip
jitsi-2d240eb9acf82a893891d9377bffd8fda1a9e373.tar.gz
jitsi-2d240eb9acf82a893891d9377bffd8fda1a9e373.tar.bz2
Allow the configuration service to start without a FileAccessService, as it is not always available (e.g. not in videobridge)
Diffstat (limited to 'src/net/java/sip/communicator/impl/configuration')
-rw-r--r--src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java b/src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java
index 3510da6..e6cee27 100644
--- a/src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java
+++ b/src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java
@@ -49,20 +49,22 @@ public class ConfigurationActivator
{
FileAccessService fas
= ServiceUtils.getService(bundleContext, FileAccessService.class);
- File useDatabaseConfig = fas.getPrivatePersistentFile(
- ".usedatabaseconfig",
- FileCategory.PROFILE);
-
- // BETA: if the marker file exists, use the database configuration
- if (useDatabaseConfig.exists())
+ if (fas != null)
{
- logger.info("Using database configuration store.");
- this.cs = new JdbcConfigService(fas);
+ File useDatabaseConfig = fas.getPrivatePersistentFile(
+ ".usedatabaseconfig",
+ FileCategory.PROFILE);
+
+ // BETA: if the marker file exists, use the database configuration
+ if (useDatabaseConfig.exists())
+ {
+ logger.info("Using database configuration store.");
+ this.cs = new JdbcConfigService(fas);
+ }
}
- else
- {
+
+ if (this.cs == null)
this.cs = LibJitsi.getConfigurationService();
- }
bundleContext.registerService(
ConfigurationService.class.getName(),