From 4470ec461045c5042020ce1e60c5b2bccbc9433d Mon Sep 17 00:00:00 2001 From: currynia Date: Fri, 8 Nov 2024 08:49:21 +0800 Subject: [PATCH] Fix bug --- .../assignment/JsonSerializablePredefinedAssignmentData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/storage/assignment/JsonSerializablePredefinedAssignmentData.java b/src/main/java/seedu/address/storage/assignment/JsonSerializablePredefinedAssignmentData.java index 9d671715195..ce0ea8c2551 100644 --- a/src/main/java/seedu/address/storage/assignment/JsonSerializablePredefinedAssignmentData.java +++ b/src/main/java/seedu/address/storage/assignment/JsonSerializablePredefinedAssignmentData.java @@ -50,7 +50,7 @@ public PredefinedAssignmentsData toModelType() throws IllegalValueException { } private boolean isFieldNull(JsonAdaptedPredefinedAssignment assignment) { - return assignment.getName() == null && assignment.getMaxScore() == null; + return assignment.getName() == null || assignment.getMaxScore() == null; } @Override