diff options
author | Christine Chen <christinech@google.com> | 2013-09-13 12:20:10 -0700 |
---|---|---|
committer | Christine Chen <christinech@google.com> | 2013-09-13 12:20:10 -0700 |
commit | 02ade580384ccd853b6a9909aa0b4423fada84df (patch) | |
tree | d71833350598f8952e55ffa80f15e99af2b690df | |
parent | ae7610fc14a767dc4f69aa39ee3fc464341037d7 (diff) |
Adds null check for getUi()
Bug: 10677816
Change-Id: I31236f9a7b9bdd17145878f8df6f83c30c667b1c
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardPresenter.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index f56d4e1e0..7496f8a4a 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -269,6 +269,9 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi> @Override public void onImageLoadComplete(int callId, Bitmap photo) { + if (getUi() == null) { + return; + } if (mPrimary != null && callId == mPrimary.getCallId()) { getUi().setPrimaryImage(photo); } else if (mSecondary != null && callId == mSecondary.getCallId()) { |