WebView may get message after destroy() is called.

Just return in this case.

Fix http://b/issue?id=2143668
This commit is contained in:
Grace Kloba
2009-09-27 11:44:14 -07:00
parent 3fd2a81ec1
commit 207308a781

View File

@ -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(