Commit abf19e78 authored by Zhihai Xu's avatar Zhihai Xu
Browse files

bluetooth crash caused by read phone book with invalid colummn number -1

bug:10919257
Change-Id: I584d5c5c65e26cacfab227742b98c49282710f68
parent 107aa9c1
......@@ -509,8 +509,10 @@ public class AtPhonebook {
}
if (DBG && name == null) log("Caller ID lookup failed for " + number);
} else {
} else if (pbr.nameColumn != -1) {
name = pbr.cursor.getString(pbr.nameColumn);
} else {
log("processCpbrCommand: empty name and number");
}
if (name == null) name = "";
name = name.trim();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment