mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix possible NPE in database migration.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user