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

Commit d8ebf219 authored by Ethan Chen's avatar Ethan Chen
Browse files

Fix call stats NPE

* There is already code to handle the case where thirdIntent is null
  without potentially derefering a null UI element. Use it.

Change-Id: I51e373d8108ba50f3843b42d188f2ad26ca3fb60
parent cd886c50
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -516,8 +516,8 @@ public class CallDetailHeader {
            icon_third.setImageResource(R.drawable.ic_contact_quick_contact_call_video_holo_dark);
            icon_third.setTag(entry);
            icon_third.setContentDescription(entry.thirdDescription);
            icon_third.setVisibility(View.VISIBLE);
        }
        icon_third.setVisibility(entry.thirdIntent != null? View.VISIBLE : View.GONE);

        TextView label = (TextView) convertView.findViewById(R.id.call_and_sms_label);
        if (TextUtils.isEmpty(entry.label)) {