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

Commit 11cb4e22 authored by Shreyas Basarge's avatar Shreyas Basarge
Browse files

NPE fix in SyncStorageEngine

Null check while reading malformed authorities
from xml file.

Bug: 26513719
Change-Id: I3bfb718bbc84b27ddd98f7941c3ca2e356d27ec0
parent 198ce1a5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1903,9 +1903,11 @@ public class SyncStorageEngine extends Handler {
                            if ("authority".equals(tagName)) {
                                authority = parseAuthority(parser, version);
                                periodicSync = null;
                                if (authority != null) {
                                    if (authority.ident > highestAuthorityId) {
                                        highestAuthorityId = authority.ident;
                                    }
                                }
                            } else if (XML_TAG_LISTEN_FOR_TICKLES.equals(tagName)) {
                                parseListenForTickles(parser);
                            }