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

Commit a6d9a9e6 authored by Stephen Bird's avatar Stephen Bird
Browse files

NPE: mBadgeIcon is sometimes null

Change-Id: I0406ce0c76d68c18862bf57ba33245f19d328cba
Ticket: CD-633
(cherry picked from commit 906b8d82)
parent 1f627416
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -117,6 +117,10 @@ public class CoachMarkDrawableHelper {
                                              final View touch, final SharedPreferences sp,
                                              CallMethodInfo cmi, float fontWidthScale) {

        if (cmi.mBadgeIcon == null) {
            return;
        }

        Display display = act.getWindowManager().getDefaultDisplay();
        Point size = new Point();
        display.getSize(size);