Fix a couple null pointer exceptions in CDMA voice call handling.

This commit is contained in:
Wink Saville
2009-06-10 14:35:28 -07:00
parent ce8436f52e
commit 4be0d4378c
2 changed files with 7 additions and 4 deletions

View File

@@ -934,6 +934,7 @@ public final class CdmaCallTracker extends CallTracker {
droppedDuringPoll.clear();
break;
case EVENT_REPOLL_AFTER_DELAY:
case EVENT_CALL_STATE_CHANGE:
pollCallsWhenSafe();
break;

View File

@@ -487,10 +487,12 @@ public class CdmaConnection extends Connection {
}
// A null cnapName should be the same as ""
if (TextUtils.isEmpty(dc.name) && !TextUtils.isEmpty(cnapName)) {
changed = true;
cnapName = "";
} else if (dc.name.equals(cnapName) == false) {
if (TextUtils.isEmpty(dc.name)) {
if (!TextUtils.isEmpty(cnapName)) {
changed = true;
cnapName = "";
}
} else if (!dc.name.equals(cnapName)) {
changed = true;
cnapName = dc.name;
}