coverity: explicit null dereferenced