Fix NPE -- check isCancelled in onPostExecute

Bug 3024665

Change-Id: I97c122a6c66a7d4245187961cb90ea874d0e305d
This commit is contained in:
Makoto Onuki 2010-09-21 17:56:59 -07:00
parent 1ef511dafd
commit 353b75b04b

View File

@ -760,7 +760,7 @@ public abstract class MessageViewFragmentBase extends Fragment implements View.O
@Override
protected void onPostExecute(Attachment[] attachments) {
if (attachments == null) {
if (isCancelled() || attachments == null) {
return;
}
boolean htmlChanged = false;