Hello John,

I agree with you, this seems to be a bug. I've created the issue 392
(http://restlet.tigris.org/issues/show_bug.cgi?id=392). Thanks a lot
for your patch, you can attach it to this issue and add yourself to
the CC field.

best regards,
Thierry Boileau

On Dec 6, 2007 7:50 AM, John R. Fallows <[EMAIL PROTECTED]> wrote:
> Folks,
>
> In the HttpClient extension on trunk, HttpMethodCall.getResponseStream()
> should return null when the underlying response body stream is null.
> However, as currently written, this method will return a non-null
> FilterInputStream wrapper, even when the underlying response body stream is
> null.
>
> Having a non-null input stream in this case leads to incorrect calculation
> of Representation.isAvailable() which causes further cascading problems such
> as NullPointerException when the any attempt is made to read from the
> stream.
>
> AFAICT, this looks like a bug, so I created a patch to resolve the issue.
> Let me know if I should file a new issue in the tracker and attach the
> patch.
>
> Kind Regards,
> John Fallows
>
>

Reply via email to