From ae86f20b9267b6ea04b61da01f12bca742b35eba Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 23 Nov 2010 18:30:44 +0100 Subject: [PATCH] Throw an exception if no plugin store is available. --- .../pterodactylus/sone/freenet/PluginStoreConfigurationBackend.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/freenet/PluginStoreConfigurationBackend.java b/src/main/java/net/pterodactylus/sone/freenet/PluginStoreConfigurationBackend.java index eebfe3e..6815371 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/PluginStoreConfigurationBackend.java +++ b/src/main/java/net/pterodactylus/sone/freenet/PluginStoreConfigurationBackend.java @@ -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(); + } } /** -- 2.7.4