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

Claus Ibsen commented on CAMEL-17774:
-------------------------------------

What is the use-case? When do you have a null input stream as input, what do 
you do?

> ZipIterator can have null ZipInputStream
> ----------------------------------------
>
>                 Key: CAMEL-17774
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17774
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-zipfile
>    Affects Versions: 3.14.2
>            Reporter: Manos Tsantakis
>            Priority: Minor
>
> The constructor of ZipIterator sets zipInputStream  to null in case of 
> inputStream being null as well. {{}}
> [Here|https://github.com/apache/camel/blob/b92eef9ee18604e6e1d463f34f792b2eb73c6560/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipIterator.java#L54]
> A null check 
> [here|https://github.com/apache/camel/blob/b92eef9ee18604e6e1d463f34f792b2eb73c6560/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipIterator.java#L51]
>  would prevent that.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to