1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Add null check in header view to prevent NPE.

This commit is contained in:
Andrew Chen 2011-01-11 22:25:06 +00:00
parent 7c7b25aa71
commit a17c21f0cd

View File

@ -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;
}