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:
parent
7c7b25aa71
commit
a17c21f0cd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user