Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-541

Missing null check for arguments in MessageFormat.format() in XmlStreamReader.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.12.0
    • Streams/Writers
    • Important

    Description

      From the documentation and implementation of XmlStreamReader class, all the encoding variables passed as arguments in MessageFormat.format() can have null values. There is no mention of allowing null values for Object arguments[] in format method of MessageFormat class in java documentation,
      Current implementation does not perform null check for all the arguments passed in format method.

      In XmlStreamReader.calculateHttpEncoding(), All the parameters can have have null values, from implementation it is clear that null check is missing for arguments i.e encoding variables passed in format method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nikshinde1996 Nikhil Shinde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: