WebView may get message after destroy() is called.
Just return in this case. Fix http://b/issue?id=2143668
This commit is contained in:
@ -4838,6 +4838,10 @@ public class WebView extends AbsoluteLayout
|
|||||||
> INVAL_RECT_MSG_ID ? Integer.toString(msg.what)
|
> INVAL_RECT_MSG_ID ? Integer.toString(msg.what)
|
||||||
: HandlerDebugString[msg.what - REMEMBER_PASSWORD]);
|
: HandlerDebugString[msg.what - REMEMBER_PASSWORD]);
|
||||||
}
|
}
|
||||||
|
if (mWebViewCore == null) {
|
||||||
|
// after WebView's destroy() is called, skip handling messages.
|
||||||
|
return;
|
||||||
|
}
|
||||||
switch (msg.what) {
|
switch (msg.what) {
|
||||||
case REMEMBER_PASSWORD: {
|
case REMEMBER_PASSWORD: {
|
||||||
mDatabase.setUsernamePassword(
|
mDatabase.setUsernamePassword(
|
||||||
|
Reference in New Issue
Block a user