action bar not null check