Fix the other possible NPE in database migration.

fork-5.53.8
Greyson Parrelli 2021-05-07 10:17:56 -04:00
rodzic 093df70602
commit 276b757e2d
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -1352,6 +1352,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()