missed attempt-to-register-null check

missed attempt-to-register-null check