Fixed NPE in OrderedObjective
This commit is contained in:
parent
b34a175a2b
commit
e23362bd6f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user