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

Commit 862e05a8 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix NPE in CandidateView.offsetMargin

Bug: 4609124
Change-Id: I14913afba80732e6beb8458b404001798a221a79
parent 86e815a1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -363,6 +363,8 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
    }

    private static void offsetMargin(View v, int dx, int dy) {
        if (v == null)
            return;
        ViewGroup.LayoutParams lp = v.getLayoutParams();
        if (lp instanceof ViewGroup.MarginLayoutParams) {
            ViewGroup.MarginLayoutParams mlp = (ViewGroup.MarginLayoutParams)lp;