commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Thomas <greg.d.tho...@gmail.com>
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 <deputman@cisco.com> 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.

Greg

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


Mime
View raw message