From b185f7d02aaa988d9b0f4aaed2e453cd875c54ed Mon Sep 17 00:00:00 2001 From: Georgiy Date: Sun, 30 Jun 2013 20:06:41 -0400 Subject: [PATCH 1/2] Trying to fix null pointer exception. --- src/gibstick/bukkit/discosheep/DiscoParty.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gibstick/bukkit/discosheep/DiscoParty.java b/src/gibstick/bukkit/discosheep/DiscoParty.java index 6c3aea2..3b24a48 100644 --- a/src/gibstick/bukkit/discosheep/DiscoParty.java +++ b/src/gibstick/bukkit/discosheep/DiscoParty.java @@ -1,7 +1,3 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ package gibstick.bukkit.discosheep; import java.util.ArrayList; From 8863b401c94240f4ddaec3587eefee5c62862f0d Mon Sep 17 00:00:00 2001 From: Georgiy Date: Sun, 30 Jun 2013 20:15:11 -0400 Subject: [PATCH 2/2] Initialized sheep array in DiscoParty --- src/gibstick/bukkit/discosheep/DiscoParty.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gibstick/bukkit/discosheep/DiscoParty.java b/src/gibstick/bukkit/discosheep/DiscoParty.java index 3b24a48..2d7358b 100644 --- a/src/gibstick/bukkit/discosheep/DiscoParty.java +++ b/src/gibstick/bukkit/discosheep/DiscoParty.java @@ -18,7 +18,7 @@ public class DiscoParty { private DiscoSheep ds; private Player player; - private ArrayList sheepList; + private ArrayList sheepList= new ArrayList(); private int duration, frequency = 20, numSheep = 5; private final int defaultDuration = 300; // ticks for entire party private final int defaultFrequency = 10; // ticks per state change