Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5695c7b4 authored by Fred Quintana's avatar Fred Quintana
Browse files

make sure that pending operation reconstituted from disk

always have an extras bundle

Bug:3226463
Change-Id: I16db632e0be1e75a77853394f716d4c47c08359e
parent 2ee1856f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1927,9 +1927,13 @@ public class SyncStorageEngine extends Handler {
                }
                AuthorityInfo authority = mAuthorities.get(authorityId);
                if (authority != null) {
                    Bundle extras = null;
                    Bundle extras;
                    if (flatExtras != null) {
                        extras = unflattenBundle(flatExtras);
                    } else {
                        // if we are unable to parse the extras for whatever reason convert this
                        // to a regular sync by creating an empty extras
                        extras = new Bundle();
                    }
                    PendingOperation op = new PendingOperation(
                            authority.account, syncSource,