Fix the other possible NPE in database migration.

This commit is contained in:
Greyson Parrelli
2021-05-07 10:17:56 -04:00
parent b77fab9c75
commit ca59ef2da8

View File

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