Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 98287 invoked from network); 19 Jun 2002 05:43:42 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Jun 2002 05:43:42 -0000 Received: (qmail 427 invoked by uid 97); 19 Jun 2002 05:43:55 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 401 invoked by uid 97); 19 Jun 2002 05:43:54 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 389 invoked by uid 98); 19 Jun 2002 05:43:53 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) From: "Zhidong Yu" To: Subject: [httpclient]Report a bug. Date: Wed, 19 Jun 2002 13:46:23 +0800 Message-ID: <003d01c21754$a5e3d9e0$2500a8c0@ipedo.com.cn> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003E_01C21797.B40719E0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_003E_01C21797.B40719E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. ------=_NextPart_000_003E_01C21797.B40719E0--