Fixed NPE in OrderedObjective

This commit is contained in:
Jonathan Williams 2016-04-05 00:36:00 -05:00
parent b34a175a2b
commit e23362bd6f

View File

@ -46,7 +46,7 @@ public abstract class OrderedObjective<Plugin extends Tutorial> extends Objectiv
OrderedObjectiveData data = getData(player);
assert index == data.getIndex();
if (data.getIndex() + 1 >= _goals.size())
if (data == null || data.getIndex() + 1 >= _goals.size())
{
finish(player);
}