Throw an exception if no plugin store is available.
[Sone.git] / src / main / java / net / pterodactylus / sone / freenet / PluginStoreConfigurationBackend.java
index eebfe3e..6815371 100644 (file)
@@ -56,6 +56,9 @@ public class PluginStoreConfigurationBackend implements ExtendedConfigurationBac
        public PluginStoreConfigurationBackend(PluginRespirator pluginRespirator) throws DatabaseDisabledException {
                this.pluginRespirator = pluginRespirator;
                this.pluginStore = pluginRespirator.getStore();
+               if (this.pluginStore == null) {
+                       throw new DatabaseDisabledException();
+               }
        }
 
        /**