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:
2e90040
)
Check null condition of number before contact query
author
Matthew Xie
<mattx@google.com>
Fri, 20 Sep 2013 00:25:05 +0000
(17:25 -0700)
committer
Matthew Xie
<mattx@google.com>
Fri, 20 Sep 2013 00:26:00 +0000
(17:26 -0700)
bug
10571304
Change-Id: Idb23e7085dc1dc7119e0e2aa8901743707e72285
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
88b2a73
..
e2c1227
100755
(executable)
--- a/
src/com/android/bluetooth/hfp/AtPhonebook.java
+++ b/
src/com/android/bluetooth/hfp/AtPhonebook.java
@@
-492,7
+492,7
@@
public class AtPhonebook {
String number = pbr.cursor.getString(pbr.numberColumn);
String name = null;
int type = -1;
- if (pbr.nameColumn == -1) {
+ if (pbr.nameColumn == -1
&& number != null && number.length() > 0
) {
// try caller id lookup
// TODO: This code is horribly inefficient. I saw it
// take 7 seconds to process 100 missed calls.