summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/incallui/ConferenceManagerPresenter.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/incallui/ConferenceManagerPresenter.java b/src/com/android/incallui/ConferenceManagerPresenter.java
index 0535bda1..8a5451a1 100644
--- a/src/com/android/incallui/ConferenceManagerPresenter.java
+++ b/src/com/android/incallui/ConferenceManagerPresenter.java
@@ -90,6 +90,11 @@ public class ConferenceManagerPresenter
private void initParticipantList(CallList callList) {
mParticipantList = null;
Call call = callList.getActiveOrBackgroundCall();
+ // getActiveOrBackgroundCall will return null if there are no calls
+ if (call == null) {
+ mNumCallersInConference = 0;
+ return;
+ }
if (isImsCall(call)) {
String[] confParticipantList = call.getCallDetails().getConfParticipantList();