missed null check