fixed null error

fixed it erroring out to debug but now it doesn't work at all
This commit is contained in:
Rseifert 2013-02-13 00:17:57 -05:00
parent 5714eb5f1f
commit 00e1fb65e2

View file

@ -35,7 +35,7 @@ public class CommandGrab extends Command
{
super();
this.entityToInclude = EntityItem.class;
if (this.parameters.length > 0 && this.parameters[0] != null)
if (this.parameters != null && this.parameters.length > 0 && this.parameters[0] != null)
{
if (this.getArg(0).equalsIgnoreCase("baby") || this.getArg(0).equalsIgnoreCase("child"))
{