You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2021/10/27 16:45:00 UTC
[jira] [Resolved] (CXF-8610) Some public methds in
org.apache.cxf.helpers.IOUtils lacks parameter verification, which may
cause Null pointer exceptions
[ https://issues.apache.org/jira/browse/CXF-8610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andriy Redko resolved CXF-8610.
-------------------------------
Resolution: Fixed
> 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)