Fix minor /book bug (Null author)

This commit is contained in:
KHobbits 2013-01-20 20:06:27 +00:00
parent 1679790157
commit 1ccda52e9f
3 changed files with 4 additions and 3 deletions

View file

@ -83,6 +83,7 @@ public class Commandbook extends EssentialsCommand
private boolean isAuthor(BookMeta bmeta, String player)
{
return bmeta.getAuthor().equalsIgnoreCase(player);
String author = bmeta.getAuthor();
return author != null && author.equalsIgnoreCase(player);
}
}