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

Commit e57b288e authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am 8ad47399: Merge change 4374 into donut

Merge commit '8ad47399'

* commit '8ad47399':
  Fixes a potential NPE in View.
parents 368d9c3a 8ad47399
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -7157,9 +7157,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
        getLocationInWindow(location);

        final AttachInfo info = mAttachInfo;
        if (info != null) {
            location[0] += info.mWindowLeft;
            location[1] += info.mWindowTop;
        }
    }

    /**
     * <p>Computes the coordinates of this view in its window. The argument