You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Herve Quiroz <he...@esil.univ-mrs.fr> on 2003/07/29 18:16:52 UTC

[configuration] CompositeConfiguration and NullPointerException

Hi,


I've been experiencing problems while using
CompositeConfiguration.getKeys() method. Indeed, as nothing prevents you
from adding a null Configuration, you're then thrown a
NullPointerException (line 149) when it comes to null.getKeys().

I would have submited a patch myself but I can't build anything right now
from the CVS (several errors occur during unit tests and I'm too busy on
my project right now to dig into the test logs).

I think addConfiguration() should throw a NullPointerException on its own
(as its a RuntimeException it won't change existing application code) so
the problem get solved easily.

BTW, nice work with this class, it is just the kind of thing I was missing
in commons-configuration.

Regards,

Herve

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org