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

Commit a145fede authored by Zhang Fang's avatar Zhang Fang Committed by Steve Kondik
Browse files

Mms: Fix FC issue that when tapping contact icon many times

Add protection to check the extra string info from bundle before making
the URI, to avoid null pointer exception.

CRs-Fixed: 534089

Change-Id: Ie8c78ca42c290e16afa1fefeb01ea67c8e963b06
parent 5e3ed654
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -316,8 +316,11 @@ public class QuickContactBadge extends ImageView implements OnClickListener {
            try {
                switch(token) {
                    case TOKEN_PHONE_LOOKUP_AND_TRIGGER:
                        String contactExtra = extras.getString(EXTRA_URI_CONTENT);
                        if (contactExtra != null) {
                            trigger = true;
                        createUri = Uri.fromParts("tel", extras.getString(EXTRA_URI_CONTENT), null);
                            createUri = Uri.fromParts("tel", contactExtra, null);
                        }

                        //$FALL-THROUGH$
                    case TOKEN_PHONE_LOOKUP: {