[ 
https://issues.apache.org/jira/browse/CAMEL-11668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dicken George updated CAMEL-11668:
----------------------------------
    Description: 
In the class DefaultCompositeApiClient.java the method
<T> Optional<T> tryToReadResponse(final Class<T> expectedType, final 
InputStream responseStream) 
cannot handle a null InputStream. 

  was:
In the class DefaultCompositeApiClient.java the method
<T> Optional<T> tryToReadResponse(final Class<T> expectedType, final 
InputStream responseStream) 
cannot handle a null InputStream. 

This can be resolved by checking if the responseStream is not null before 
closing the Stream. 


> 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)

Reply via email to