Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 72681 invoked from network); 22 Jan 2008 00:22:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jan 2008 00:22:55 -0000 Received: (qmail 29977 invoked by uid 500); 22 Jan 2008 00:22:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 29947 invoked by uid 500); 22 Jan 2008 00:22:45 -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 29937 invoked by uid 99); 22 Jan 2008 00:22:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jan 2008 16:22:45 -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; Tue, 22 Jan 2008 00:22:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 74772714236 for ; Mon, 21 Jan 2008 16:22:34 -0800 (PST) Message-ID: <28574045.1200961354474.JavaMail.jira@brutus> Date: Mon, 21 Jan 2008 16:22:34 -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&focusedCommentId=12561177#action_12561177 ] Dag H. Wanvik commented on DERBY-3215: -------------------------------------- Merged both patches to 10.3 branch as svn 614068 after running regression tests without errors. > 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, DERBY-3215b.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.