rm unneeded null ptr check (Coverity)