From 442756084d75d4ebd878e08617a5a4d578589734 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 9 Nov 2012 10:40:22 -0800 Subject: Fix NPE if SmartDialLoaderTask has null context Add null check for mContext to prevent NPE if somehow SmartDialLoaderTask receives a null context Bug: 6977981 Change-Id: Id87b254520a48ad78dc0c579f0fd58d7f7ce270e --- src/com/android/dialer/dialpad/SmartDialLoaderTask.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/com/android/dialer/dialpad/SmartDialLoaderTask.java b/src/com/android/dialer/dialpad/SmartDialLoaderTask.java index ec99d8a14..b4613b30d 100644 --- a/src/com/android/dialer/dialpad/SmartDialLoaderTask.java +++ b/src/com/android/dialer/dialpad/SmartDialLoaderTask.java @@ -170,14 +170,21 @@ public class SmartDialLoaderTask extends AsyncTask