commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Thomas <>
Subject Re: [configuration] Re: CompositeConfiguration Checking Existence of Properties.
Date Wed, 31 Oct 2012 16:24:05 GMT
On 31 October 2012 16:16, Dennis Putnam <> wrote:
> Thanks for the reply. I had 'getString' originally and got the same error

So just to confirm,

String foo = config.getString(keythatexists);
String bar = config.getString(keythatdoesnotexist);

is throwing a NullPointerException on the second line?

If so, that sounds like a bug as it should only throw a
NoSuchElementException - and that only if
setThrowExceptionOnMissing(true) is called.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message