[jax-rs-spec users] [jsr339-experts] Re: Replacing IllegalStateException in UriBuilder API with NPE?

From: Sergey Beryozkin <>
Date: Mon, 11 Jun 2012 11:31:58 +0100

On 05/06/12 16:59, Bill Burke wrote:
> Isn't there TCK tests that test that ISE is thrown when null is passed in?

In some cases 'null' is valid (resetting some of the previous state), so
it would be good to get some further clarifications on the issue

NPE is associated with a code bug to me, I often see people saying NPE
is always a bug in the code, so I wonder if such a replacement is really

Cheers, Sergey

> On 6/5/12 11:05 AM, Marek Potociar wrote:
>> Hello Experts,
>> please provide your feedback:
>> Thanks,
>> Marek