camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dicken George (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-11668) CompositeApiClient cannot close null Stream
Date Mon, 14 Aug 2017 11:12:00 GMT

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

Dicken George updated CAMEL-11668:
----------------------------------
    Attachment: camel-salesforce.patch

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 can be resolved by checking if the responseStream is not null before closing the
Stream. 



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

Mime
View raw message