null checks missing - it's a public method, you mustn't assume that all parameters are valid