You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/05/19 14:13:32 UTC

DO NOT REPLY [Bug 29084] New: - Validate.noNullEmelents(Object[], String) does not use message if Object[] == null

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29084>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29084

Validate.noNullEmelents(Object[], String) does not use message if Object[] == null

           Summary: Validate.noNullEmelents(Object[], String) does not use
                    message if Object[] == null
           Product: Commons
           Version: 2.0 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: joost@cassee.net


The first statement in Validate.noNullEmelents(Object[], String) is 
Validate.notNull(array). This should be Validate.notNull(array, message). 
Because of this, the message is not used when the array is null itself. This 
also applies to Validate.noNullEmelents(Collection, String).

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org