From 1736196a05809fcaf4711dcac56026e795cd98a2 Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 26 Apr 2020 14:34:08 +0200 Subject: [PATCH] Only disconnect database if initialized --- src/main/java/de/epiceric/shopchest/ShopChest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/ShopChest.java b/src/main/java/de/epiceric/shopchest/ShopChest.java index ddde89b..fd9daca 100644 --- a/src/main/java/de/epiceric/shopchest/ShopChest.java +++ b/src/main/java/de/epiceric/shopchest/ShopChest.java @@ -256,7 +256,7 @@ public class ShopChest extends JavaPlugin { debug("Removed shop (#" + shop.getID() + ")"); } - if (database != null) { + if (database != null && database.isInitialized()) { if (database instanceof SQLite) { ((SQLite) database).vacuum(); }