mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-12-22 21:16:57 +00:00
Null check. Fixes https://github.com/austinhuang0131/barinsta/issues/863
This commit is contained in:
parent
926ebca9e9
commit
8f72796891
@ -264,7 +264,10 @@ public final class ThreadManager {
|
||||
}
|
||||
|
||||
private List<User> getUsersWithCurrentUser(final DirectThread t) {
|
||||
final ImmutableList.Builder<User> builder = ImmutableList.<User>builder().add(currentUser);
|
||||
final ImmutableList.Builder<User> builder = ImmutableList.<User>builder();
|
||||
if (currentUser != null) {
|
||||
builder.add(currentUser);
|
||||
}
|
||||
final List<User> users = t.getUsers();
|
||||
if (users != null) {
|
||||
builder.addAll(users);
|
||||
|
Loading…
Reference in New Issue
Block a user