X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2FPluginStoreConfigurationBackend.java;h=68153710c18fa71c5d017a6267069ec98adb3653;hb=ae86f20b9267b6ea04b61da01f12bca742b35eba;hp=eebfe3ec46d844be8a5c3df4f0da04669a826e98;hpb=763715116898c7def5cf72e2c560af3b89450839;p=Sone.git 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(); + } } /**