You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Manos Tsantakis (Jira)" <ji...@apache.org> on 2022/03/10 14:16:00 UTC

[jira] [Created] (CAMEL-17774) ZipIterator can have null ZipInputStream

Manos Tsantakis created CAMEL-17774:
---------------------------------------

             Summary: 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


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)