You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2023/04/25 20:53:00 UTC

[jira] [Closed] (IO-541) Missing null check for arguments in MessageFormat.format() in XmlStreamReader.java

     [ https://issues.apache.org/jira/browse/IO-541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory closed IO-541.
------------------------------
    Fix Version/s: 2.12.0
       Resolution: Fixed

Added some Javadocs to {{{}XmlStreamReader{}}}.

> Missing null check for arguments in MessageFormat.format() in XmlStreamReader.java
> ----------------------------------------------------------------------------------
>
>                 Key: IO-541
>                 URL: https://issues.apache.org/jira/browse/IO-541
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Streams/Writers
>            Reporter: Nikhil Shinde
>            Priority: Minor
>              Labels: newbie
>             Fix For: 2.12.0
>
>
> 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.   
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)