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

Commit 4754f401 authored by Craig Mautner's avatar Craig Mautner Committed by Gerrit Code Review
Browse files

Merge "Avoid NullPointerException in getHandler()"

parents cd1de394 c6031ab7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -10525,8 +10525,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * handler can be used to pump events in the UI events queue.
     */
    public Handler getHandler() {
        if (mAttachInfo != null) {
            return mAttachInfo.mHandler;
        final AttachInfo attachInfo = mAttachInfo;
        if (attachInfo != null) {
            return attachInfo.mHandler;
        }
        return null;
    }