From a17c21f0cd053974e7a98d2e2df29df3cd6c3486 Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Tue, 11 Jan 2011 22:25:06 +0000 Subject: [PATCH] Add null check in header view to prevent NPE. --- src/com/fsck/k9/view/MessageHeader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/view/MessageHeader.java b/src/com/fsck/k9/view/MessageHeader.java index ba506c444..a13523636 100644 --- a/src/com/fsck/k9/view/MessageHeader.java +++ b/src/com/fsck/k9/view/MessageHeader.java @@ -150,7 +150,7 @@ public class MessageHeader extends LinearLayout public boolean additionalHeadersVisible() { - if ( mAdditionalHeadersView.getVisibility() == View.VISIBLE ) + if ( mAdditionalHeadersView != null && mAdditionalHeadersView.getVisibility() == View.VISIBLE ) { return true; }