[ https://issues.apache.org/jira/browse/CXF-8610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17434957#comment-17434957 ]
Andriy Redko commented on CXF-8610: ----------------------------------- https://github.com/apache/cxf/pull/867 > 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 > Affects Versions: 3.3.12, 3.4.5 > Reporter: panda2021 > Priority: Minor > Fix For: 3.5.0, 3.4.6, 3.3.13 > > 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)