[ https://issues.apache.org/jira/browse/CXF-8610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17434069#comment-17434069 ]
Andriy Redko commented on CXF-8610: ----------------------------------- Hi [~panda2021], thank you for the issue. We generally do not consider org.apache.cxf.helpers.IOUtils to be general-purpose utility class. Although it is public, the usage is supposed to be limited by CXF components. In any case, you are very welcome to submit the pull request, thank you. > Some public methds in org.apache.cxf.helpers.IOUtils lacks parameter > verification, which may cause Null pointer exceptions > -------------------------------------------------------------------------------------------------------------------------- > > Key: CXF-8610 > URL: https://issues.apache.org/jira/browse/CXF-8610 > Project: CXF > Issue Type: Improvement > Components: Core > Reporter: panda2021 > Priority: Minor > Attachments: image-2021-10-25-11-53-27-620.png > > > When I performed IO operations using the IOUtils toolkit provided by cxf, a > null pointer exception occurred. Therefore, I read IOUtils code. And I found > that some pubilic methods in this class missed parameter verification which > could be result of Null pointer exceptions. > For example, > !image-2021-10-25-11-53-27-620.png! > > when the input was null,the code would throw an excetion when excuting > input.available(). > The same problem occurred with the methods copyAtLeast, loadIntoBAIS, > transferTo, etc. > -- This message was sent by Atlassian Jira (v8.3.4#803005)