forked from AY2324S2-CS2103T-T08-1/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: fix NullPointerException in optional fields
Source.getEmail() returns a null, using toString() on a null causes the Exception. Since Optional.ofNullable only handles the null cases within its parameters, to handle null pointer safely, convert it to string outside of ofNullable() Remove Optional Values in Person.equals() to avoid null pointer
- Loading branch information
1 parent
9436d09
commit 20dee78
Showing
2 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters