On 6/7/07, Martin van den Bemt <[EMAIL PROTECTED]> wrote:
If the intention is to have a NullPointerException when null is passed, declare 
it and throw it
specifically (that way you are in control of the exception). I think every 
undocumented nullpointer
exception is a bug.

I would prefer throwing IllegalArgumentException to NPE in this case,
since there is no null dereference. I would also consider making this
a no-op (i.e., leave the NormalDistribution alone if null is passed to
this method).  I am fine leaving as is, however.

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to