Use only null for err if no error