How can mHeaderView be null?  Can you please add a comment?