Set the handcuff manager to null on disable

This commit is contained in:
graywolf336 2014-01-01 18:27:23 -06:00
parent 2a3c3ad0f7
commit 738f8bc057
2 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public class JailMain extends JavaPlugin {
pm = null;
jm = null;
io = null;
hcm = null;
}
private void loadConfig() {

View File

@ -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());