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

Commit 207308a7 authored by Grace Kloba's avatar Grace Kloba
Browse files

WebView may get message after destroy() is called.

Just return in this case.

Fix http://b/issue?id=2143668
parent 3fd2a81e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4838,6 +4838,10 @@ public class WebView extends AbsoluteLayout
                        > INVAL_RECT_MSG_ID ? Integer.toString(msg.what)
                        : HandlerDebugString[msg.what - REMEMBER_PASSWORD]);
            }
            if (mWebViewCore == null) {
                // after WebView's destroy() is called, skip handling messages.
                return;
            }
            switch (msg.what) {
                case REMEMBER_PASSWORD: {
                    mDatabase.setUsernamePassword(