Skip to content

Commit

Permalink
Update JsonAdaptedPerson.java
Browse files Browse the repository at this point in the history
To fix the bug
  • Loading branch information
Darren-Tung committed Oct 9, 2024
1 parent a079d57 commit 4f2c1b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/seedu/address/storage/JsonAdaptedPerson.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ public Person toModelType() throws IllegalValueException {
if (note == null) {
throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT, Note.class.getSimpleName()));
}
if (!Note.isValidNote(note)) {
throw new IllegalValueException(Note.MESSAGE_CONSTRAINTS);
}
final Note modelNote = new Note(note);

final Set<Tag> modelTags = new HashSet<>(personTags);
Expand Down

0 comments on commit 4f2c1b1

Please sign in to comment.