Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 1ce3d6f

Browse files
Swati4startimabbott
authored andcommitted
Fix person.java throwing an exception when person details are empty.
1 parent 958e3e8 commit 1ce3d6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/com/zulip/android/models/Person.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ public boolean equals(Object obj) {
138138
return false;
139139
}
140140
Person per = (Person) obj;
141+
if(this.name == null || this.email == null)
142+
return false;
141143
return this.name.equals(per.getName()) && this.email.equals(per
142144
.getEmail());
143145
}

0 commit comments

Comments
 (0)