From e23362bd6fae16fb8b06a8b43943ea30011a7e61 Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Tue, 5 Apr 2016 00:36:00 -0500 Subject: [PATCH] Fixed NPE in OrderedObjective --- .../game/clans/tutorial/objective/OrderedObjective.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/objective/OrderedObjective.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/objective/OrderedObjective.java index 91302df37..450d3b167 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/objective/OrderedObjective.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/objective/OrderedObjective.java @@ -46,7 +46,7 @@ public abstract class OrderedObjective 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); }