From 738f8bc057f6bcaedb60685a2caae150d3fb6994 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Wed, 1 Jan 2014 18:27:23 -0600 Subject: [PATCH] Set the handcuff manager to null on disable --- src/main/java/com/graywolf336/jail/JailMain.java | 1 + src/test/java/test/java/com/graywolf336/jail/TestJailStuff.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/graywolf336/jail/JailMain.java b/src/main/java/com/graywolf336/jail/JailMain.java index ae6eb93..2b6957a 100644 --- a/src/main/java/com/graywolf336/jail/JailMain.java +++ b/src/main/java/com/graywolf336/jail/JailMain.java @@ -64,6 +64,7 @@ public class JailMain extends JavaPlugin { pm = null; jm = null; io = null; + hcm = null; } private void loadConfig() { diff --git a/src/test/java/test/java/com/graywolf336/jail/TestJailStuff.java b/src/test/java/test/java/com/graywolf336/jail/TestJailStuff.java index 8f99b20..585fc02 100644 --- a/src/test/java/test/java/com/graywolf336/jail/TestJailStuff.java +++ b/src/test/java/test/java/com/graywolf336/jail/TestJailStuff.java @@ -35,6 +35,7 @@ public class TestJailStuff { @Test public void testForJails() { + assertNotNull("The HandCuffManager is null.", main.getHandCuffManager()); assertNotNull("The JailIO is null.", main.getJailIO()); assertNotNull("The JailManager is null.", main.getJailManager()); assertNotNull("The HashSet for jails return is null.", main.getJailManager().getJails());