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

Commit bae9ded3 authored by Shreyas Basarge's avatar Shreyas Basarge
Browse files

NPE Fix in SyncStorageEngine

Add a null check after reading an
authority from disk.

Bug: 26513719
Change-Id: Id8a1c8313fcde42e72a5061e38716e2f1d64fd81
parent 46d53771
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1490,6 +1490,9 @@ public class SyncStorageEngine extends Handler {
                                    if (authority.ident > highestAuthorityId) {
                                        highestAuthorityId = authority.ident;
                                    }
                                } else {
                                    EventLog.writeEvent(0x534e4554, "26513719", -1,
                                            "Malformed authority");
                                }
                            } else if (XML_TAG_LISTEN_FOR_TICKLES.equals(tagName)) {
                                parseListenForTickles(parser);