Duplicate :
|
Constructor.newInstance doesn't check the first parameter to see if it isn't null when used to construct an inner class, although the enclosing object should never *be* null. It is better to catch this on creation than on first use.
|