Fix the other possible NPE in database migration.
This commit is contained in:
parent
093df70602
commit
276b757e2d
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue