Return NULL when necessary.