kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix the other possible NPE in database migration.
rodzic
093df70602
commit
276b757e2d
|
@ -1352,6 +1352,10 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper implements SignalDatab
|
||||||
byte[] reactions = cursor.getBlob(cursor.getColumnIndexOrThrow("reactions"));
|
byte[] reactions = cursor.getBlob(cursor.getColumnIndexOrThrow("reactions"));
|
||||||
long notifiedTimestamp = cursor.getLong(cursor.getColumnIndexOrThrow("notified_timestamp"));
|
long notifiedTimestamp = cursor.getLong(cursor.getColumnIndexOrThrow("notified_timestamp"));
|
||||||
|
|
||||||
|
if (reactions == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
boolean hasReceiveLaterThanNotified = ReactionList.parseFrom(reactions)
|
boolean hasReceiveLaterThanNotified = ReactionList.parseFrom(reactions)
|
||||||
.getReactionsList()
|
.getReactionsList()
|
||||||
|
|
Ładowanie…
Reference in New Issue