From 1d66af17ae04e2c17746d7c402888ce98cda4b12 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Thu, 5 Dec 2013 11:26:34 -0800 Subject: Add null check in CallLogNotificationsService Bug: 12015853 Change-Id: Ia2394f1ee0f102de4eab3f5468fd6204727b607d --- src/com/android/dialer/calllog/CallLogNotificationsService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/dialer/calllog/CallLogNotificationsService.java b/src/com/android/dialer/calllog/CallLogNotificationsService.java index 3270963cc..ccd933542 100644 --- a/src/com/android/dialer/calllog/CallLogNotificationsService.java +++ b/src/com/android/dialer/calllog/CallLogNotificationsService.java @@ -70,6 +70,10 @@ public class CallLogNotificationsService extends IntentService { @Override protected void onHandleIntent(Intent intent) { + if (intent == null) { + Log.d(TAG, "onHandleIntent: could not handle null intent"); + return; + } if (ACTION_MARK_NEW_VOICEMAILS_AS_OLD.equals(intent.getAction())) { mCallLogQueryHandler.markNewVoicemailsAsOld(); } else if (ACTION_UPDATE_NOTIFICATIONS.equals(intent.getAction())) { -- cgit v1.2.3