From e22311d9d53df9fb1b61524eb38ce748ccd1259a Mon Sep 17 00:00:00 2001 From: evedaktyl Date: Mon, 15 Apr 2024 23:21:13 +0800 Subject: [PATCH] Assert statement --- .../model/student/predicates/StarWithinBoundsPredicate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/seedu/address/model/student/predicates/StarWithinBoundsPredicate.java b/src/main/java/seedu/address/model/student/predicates/StarWithinBoundsPredicate.java index 594eadab4c5..1110d124dd7 100644 --- a/src/main/java/seedu/address/model/student/predicates/StarWithinBoundsPredicate.java +++ b/src/main/java/seedu/address/model/student/predicates/StarWithinBoundsPredicate.java @@ -19,6 +19,7 @@ public class StarWithinBoundsPredicate implements Predicate { * @param value */ public StarWithinBoundsPredicate(String operator, Integer value) { + assert(value > -1); this.operator = operator; this.value = value; }