commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhidong Yu" <zhid...@ipedo.com>
Subject [httpclient]Report a bug.
Date Wed, 19 Jun 2002 05:46:23 GMT
In the org.apache.commons.httpclient.NameValuePair.java, the equals()
method should check whether the object is null.
 
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        } else if (this.getClass().equals(object.getClass())) {
                                                             ^ if object
is null, NullPointerException will be raised.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message