Skip to content

Commit b22f3f2

Browse files
author
Zach Jang
committed
Conflict resolution CL to ag/868720 when cp'ing to mnc-mr1-release
Change-Id: I3efe5476ebd758fc567bfdb035583a01c45aea8b
1 parent 4de51e4 commit b22f3f2

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

services/core/java/com/android/server/content/SyncStorageEngine.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import android.util.SparseArray;
4646
import android.util.ArrayMap;
4747
import android.util.Xml;
48+
import android.util.EventLog;
4849

4950
import com.android.internal.annotations.VisibleForTesting;
5051
import com.android.internal.util.ArrayUtils;
@@ -1892,8 +1893,13 @@ private void readAccountInfoLocked() {
18921893
if ("authority".equals(tagName)) {
18931894
authority = parseAuthority(parser, version);
18941895
periodicSync = null;
1895-
if (authority.ident > highestAuthorityId) {
1896-
highestAuthorityId = authority.ident;
1896+
if (authority != null) {
1897+
if (authority.ident > highestAuthorityId) {
1898+
highestAuthorityId = authority.ident;
1899+
}
1900+
} else {
1901+
EventLog.writeEvent(0x534e4554, "26513719", -1,
1902+
"Malformed authority");
18971903
}
18981904
} else if (XML_TAG_LISTEN_FOR_TICKLES.equals(tagName)) {
18991905
parseListenForTickles(parser);

0 commit comments

Comments
 (0)