Missed a null check