what happens if type is null?