Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 16481 invoked from network); 19 Nov 2007 22:09:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Nov 2007 22:09:07 -0000 Received: (qmail 93703 invoked by uid 500); 19 Nov 2007 22:08:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 93671 invoked by uid 500); 19 Nov 2007 22:08:54 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 93662 invoked by uid 99); 19 Nov 2007 22:08:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2007 14:08:53 -0800 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; Mon, 19 Nov 2007 22:09:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 03D6771403F for ; Mon, 19 Nov 2007 14:08:43 -0800 (PST) Message-ID: <30926063.1195510123013.JavaMail.jira@brutus> Date: Mon, 19 Nov 2007 14:08:43 -0800 (PST) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3215) Potential NullPointerException in CachedPage class In-Reply-To: <30635091.1195483543290.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/jira/browse/DERBY-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543704 ] Dag H. Wanvik commented on DERBY-3215: -------------------------------------- I should mention that the wrong usage of FILE_WRITE_PAGE_EXCEPTION occurs in one more instance in the same method (except for the one susceptible to the empty pointer). The patch corrects both instances. There are no occurences in other classes. > Potential NullPointerException in CachedPage class > -------------------------------------------------- > > Key: DERBY-3215 > URL: https://issues.apache.org/jira/browse/DERBY-3215 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.3.1.4 > Environment: Windows XP > Reporter: Jason Valentine > Assignee: Dag H. Wanvik > Priority: Minor > Fix For: 10.4.0.0 > > Attachments: DERBY-3215.diff > > > There's a potential for a NullPointerException to be thrown in the in the org.apache.derby.impl.store.raw.data.CachedPage class. In the writePage() method, there's a test of the myContainer reference to ensure it's not null (line 771), however in the else block, myContainer is dereferenced (line 836), where a NullPointerException is guaranteed to be thrown. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.