From issues-return-5079-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Fri May 11 06:41:07 2007 Return-Path: Delivered-To: apmail-struts-issues-archive@locus.apache.org Received: (qmail 27167 invoked from network); 11 May 2007 06:41:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 May 2007 06:41:06 -0000 Received: (qmail 50208 invoked by uid 500); 11 May 2007 06:41:10 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 50175 invoked by uid 500); 11 May 2007 06:41:10 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 50166 invoked by uid 99); 11 May 2007 06:41:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 23:41:09 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 23:41:02 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D2051714057 for ; Thu, 10 May 2007 23:40:42 -0700 (PDT) Message-ID: <1362460.1178865642857.JavaMail.jira@brutus> Date: Thu, 10 May 2007 23:40:42 -0700 (PDT) From: "Rohit Dewan (JIRA)" To: issues@struts.apache.org Subject: [jira] Updated: (WW-1920) NullPointerException in CookieInterceptor when there are no cookies in request In-Reply-To: <28465683.1178865523851.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rohit Dewan updated WW-1920: ---------------------------- Attachment: patchfile.txt > NullPointerException in CookieInterceptor when there are no cookies in request > ------------------------------------------------------------------------------ > > Key: WW-1920 > URL: https://issues.apache.org/struts/browse/WW-1920 > Project: Struts 2 > Issue Type: Bug > Components: Interceptors > Affects Versions: 2.0.7, 2.0.8 > Reporter: Rohit Dewan > Attachments: patchfile.txt > > > As per the contract, the getCookies() method in HTTPServletRequest returns null if there are no cookies in the request. The CookieInterceptor code does not check for this condition and attempts to use the returned object which results in a NullPointerException. > I will attach a patch which should resolve the issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.