You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Dicken George (JIRA)" <ji...@apache.org> on 2017/08/14 11:12:00 UTC

[jira] [Comment Edited] (CAMEL-11668) CompositeApiClient cannot close null Stream

    [ https://issues.apache.org/jira/browse/CAMEL-11668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16125548#comment-16125548 ] 

Dicken George edited comment on CAMEL-11668 at 8/14/17 11:11 AM:
-----------------------------------------------------------------

The problem can be resolved by checking if the responseStream is null or not before closing the Stream.


was (Author: dickengeorge):
The problem can be resolved by checking if the responseStream is null or not before closing it.

> CompositeApiClient cannot close null Stream
> -------------------------------------------
>
>                 Key: CAMEL-11668
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11668
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>    Affects Versions: 2.19.3
>         Environment: Windows 10, Eclipse Oxygen IDE with Java J2SE
>            Reporter: Dicken George
>            Priority: Blocker
>              Labels: easyfix
>             Fix For: 2.19.3
>
>         Attachments: camel-salesforce.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> In the class DefaultCompositeApiClient.java the method
> <T> Optional<T> tryToReadResponse(final Class<T> expectedType, final InputStream responseStream) 
> cannot handle a null InputStream. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)