Fix the other possible NPE in database migration.

This commit is contained in:
Greyson Parrelli 2021-05-07 10:17:56 -04:00
parent 093df70602
commit 276b757e2d

View file

@ -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()