Fixing an NPE with the /mcmmo command.

This commit is contained in:
Glitchfinder 2013-02-08 12:23:14 -08:00
parent 400d551295
commit f97e9bd19f

View File

@ -81,6 +81,10 @@ public final class Anniversary {
GregorianCalendar anniversaryEnd = new GregorianCalendar(2013, Calendar.FEBRUARY, 6);
GregorianCalendar day = new GregorianCalendar();
if (hasCelebrated == null) {
createAnniversaryFile();
}
if (hasCelebrated.contains(sender.getName())) {
return;
}