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

Commit a571336

Browse files
Sam1301kunall17
authored andcommitted
Check for person null in ProfileSpan.onClick().
This error checking is necessary since we cannot be certain the database will have the person data at all times.
1 parent 6442c73 commit a571336

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/com/zulip/android/util/ProfileSpan.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ public void onClick(View widget) {
3535
}
3636
} else {
3737
for (String email : this.email.split(",")) {
38-
people.add(Person.getByEmail(ZulipApp.get(), email));
38+
Person person = Person.getByEmail(ZulipApp.get(), email);
39+
if (person != null) {
40+
people.add(person);
41+
}
3942
}
4043
people.add(ZulipApp.get().getYou());
4144
}

0 commit comments

Comments
 (0)