Closed smuir closed 10 years ago
This should probably throw an IllegalArgumentException rather than a NPE, per common convention. Also, it would be nice to see a unit test to go with this.
Yes, I half expected that someone would tell me to use IllegalArgumentException, didn't know the convention but figured this was a reasonable way to find out. I will hack up a quick unit test.
This request probably needs to be resubmitted in a cleaner format, i.e., without including the various merge commits. I will try to do so.
Not sure what this will look like