1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-25 23:21:50 -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() public boolean additionalHeadersVisible()
{ {
if ( mAdditionalHeadersView.getVisibility() == View.VISIBLE ) if ( mAdditionalHeadersView != null && mAdditionalHeadersView.getVisibility() == View.VISIBLE )
{ {
return true; return true;
} }