Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a7cc76a authored by Jay Shrauner's avatar Jay Shrauner
Browse files

Fix NPE in onHandleIntent

Catch null intents.

Bug:18579403
Change-Id: I4ee3baf97c8767f0b166f122c13f8abab3a75a4f
parent 99c0c851
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -182,6 +182,10 @@ public class ContactSaveService extends IntentService {

    @Override
    protected void onHandleIntent(Intent intent) {
        if (intent == null) {
            Log.d(TAG, "onHandleIntent: could not handle null intent");
            return;
        }
        // Call an appropriate method. If we're sure it affects how incoming phone calls are
        // handled, then notify the fact to in-call screen.
        String action = intent.getAction();