MessageCompose: fix NPE cased by WebView set to null in onDestroy().

Bug 2329276.
This commit is contained in:
Mihai Preda 2009-12-16 18:12:34 +01:00
parent ec3daeedb3
commit 55f5256761

View File

@ -1274,9 +1274,10 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
// EmailHtmlUtil.resolveInlineImage(getContentResolver(), mAccount,
// text, message, 0);
mQuotedTextBar.setVisibility(View.VISIBLE);
mQuotedText.setVisibility(View.VISIBLE);
mQuotedText.loadDataWithBaseURL("email://", text, "text/html",
"utf-8", null);
if (mQuotedText != null) {
mQuotedText.setVisibility(View.VISIBLE);
mQuotedText.loadDataWithBaseURL("email://", text, "text/html", "utf-8", null);
}
}
}