diff --git a/src/main/java/com/questhelper/requirements/conditional/ObjectCondition.java b/src/main/java/com/questhelper/requirements/conditional/ObjectCondition.java index 0ae8a4d552..ee780486be 100644 --- a/src/main/java/com/questhelper/requirements/conditional/ObjectCondition.java +++ b/src/main/java/com/questhelper/requirements/conditional/ObjectCondition.java @@ -32,7 +32,7 @@ import net.runelite.api.Tile; import net.runelite.api.TileObject; import net.runelite.api.coords.WorldPoint; -import java.util.List; +import java.util.Objects; import java.util.Set; public class ObjectCondition extends ConditionForStep @@ -71,6 +71,8 @@ public ObjectCondition(int objectID, Zone zone) public ObjectCondition(Set objectIDs, WorldPoint worldPoint) { assert(worldPoint != null); + assert(objectIDs != null); + assert(objectIDs.stream().noneMatch(Objects::isNull)); this.objectIDs = objectIDs; this.zone = new Zone(worldPoint);