-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix .equals() logic in Profile class
Summary: The existing `.equals()` method was throwing null pointer exceptions if certain fields of the `Profile` were null (which they are allowed to be, since we have explicitly specified that they are `nullable`). Fix this logic and add a sanity check to confirm that `.equals()` is indeed commutative. Reviewed By: YOUDAN Differential Revision: D24284819 fbshipit-source-id: 4efc3d3ac3228f3251a2e3d2c8e44a7f4fb93260
- Loading branch information
1 parent
ec5d83d
commit a279b56
Showing
2 changed files
with
7 additions
and
11 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