Fix market-reported NullPointerException

Fixes issue 1660
This commit is contained in:
cketti 2010-07-08 01:09:43 +00:00
parent 1eb37c2031
commit 8bc42639c4

View file

@ -1943,7 +1943,8 @@ public class MessageView extends K9Activity implements OnClickListener
{
mHandler.networkError();
}
if (!MessageView.this.mMessage.isSet(Flag.X_DOWNLOADED_PARTIAL))
if ((MessageView.this.mMessage == null) ||
!MessageView.this.mMessage.isSet(Flag.X_DOWNLOADED_PARTIAL))
{
mMessageContentView.loadUrl("file:///android_asset/empty.html");
}