OSDN Git Service
(root)
/
android-x86
/
packages-apps-Bluetooth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
107aa9c
)
bluetooth crash caused by read phone book with invalid colummn number -1
author
Zhihai Xu
<zhihaixu@google.com>
Wed, 25 Sep 2013 01:22:29 +0000
(18:22 -0700)
committer
Zhihai Xu
<zhihaixu@google.com>
Wed, 25 Sep 2013 01:22:29 +0000
(18:22 -0700)
bug:
10919257
Change-Id: I584d5c5c65e26cacfab227742b98c49282710f68
src/com/android/bluetooth/hfp/AtPhonebook.java
patch
|
blob
|
history
diff --git
a/src/com/android/bluetooth/hfp/AtPhonebook.java
b/src/com/android/bluetooth/hfp/AtPhonebook.java
index
e2c1227
..
4528bd6
100755
(executable)
--- a/
src/com/android/bluetooth/hfp/AtPhonebook.java
+++ b/
src/com/android/bluetooth/hfp/AtPhonebook.java
@@
-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();