Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8610

Some public methds in org.apache.cxf.helpers.IOUtils lacks parameter verification, which may cause Null pointer exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.12, 3.4.5
    • 3.5.0, 3.3.13, 3.4.6
    • Core
    • None
    • Unknown

    Description

      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,

       

      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.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              panda2021 panda2021
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: