mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 21:48:17 +00:00
Fix possible crash for unregistered users.
This commit is contained in:
@@ -201,7 +201,7 @@ public final class LiveRecipientCache {
|
||||
|
||||
stopwatch.split("thread");
|
||||
|
||||
if (SignalStore.registrationValues().isRegistrationComplete()) {
|
||||
if (SignalStore.registrationValues().isRegistrationComplete() && SignalStore.account().getAci() != null) {
|
||||
try (Cursor cursor = SignalDatabase.recipients().getNonGroupContacts(false)) {
|
||||
int count = 0;
|
||||
while (cursor != null && cursor.moveToNext() && count < CONTACT_CACHE_WARM_MAX) {
|
||||
|
||||
Reference in New Issue
Block a user