Exception type for null params changed, hashcode() and equals()
simplified.