Why do you write "null" here? Throwing an exception would be a better option here.