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