Merge change 3806 into donut
* changes: Fix a couple null pointer exceptions in CDMA voice call handling.
This commit is contained in:
@@ -934,6 +934,7 @@ public final class CdmaCallTracker extends CallTracker {
|
|||||||
droppedDuringPoll.clear();
|
droppedDuringPoll.clear();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case EVENT_REPOLL_AFTER_DELAY:
|
||||||
case EVENT_CALL_STATE_CHANGE:
|
case EVENT_CALL_STATE_CHANGE:
|
||||||
pollCallsWhenSafe();
|
pollCallsWhenSafe();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -487,10 +487,12 @@ public class CdmaConnection extends Connection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// A null cnapName should be the same as ""
|
// A null cnapName should be the same as ""
|
||||||
if (TextUtils.isEmpty(dc.name) && !TextUtils.isEmpty(cnapName)) {
|
if (TextUtils.isEmpty(dc.name)) {
|
||||||
changed = true;
|
if (!TextUtils.isEmpty(cnapName)) {
|
||||||
cnapName = "";
|
changed = true;
|
||||||
} else if (dc.name.equals(cnapName) == false) {
|
cnapName = "";
|
||||||
|
}
|
||||||
|
} else if (!dc.name.equals(cnapName)) {
|
||||||
changed = true;
|
changed = true;
|
||||||
cnapName = dc.name;
|
cnapName = dc.name;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user