null check missing