update null pointer input case