Fix possible NPE in database migration.

fork-5.53.8
Greyson Parrelli 2021-05-05 17:56:06 -04:00
rodzic 553b7522aa
commit afdf4e365f
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -1378,6 +1378,10 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper implements SignalDatab
byte[] reactions = cursor.getBlob(cursor.getColumnIndexOrThrow("reactions"));
long notifiedTimestamp = cursor.getLong(cursor.getColumnIndexOrThrow("notified_timestamp"));
if (reactions == null) {
continue;
}
try {
boolean hasReceiveLaterThanNotified = ReactionList.parseFrom(reactions)
.getReactionsList()