am 207308a7: WebView may get message after destroy() is called. Just return in this case.

Merge commit '207308a781621c427acccbd9983c2511a65e9137' into eclair-plus-aosp

* commit '207308a781621c427acccbd9983c2511a65e9137':
  WebView may get message after destroy() is called.
This commit is contained in:
Grace Kloba
2009-09-28 09:49:53 -07:00
committed by Android Git Automerger

View File

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