Fix check not null snippet bug.