Return-Path: X-Original-To: apmail-openejb-commits-archive@www.apache.org Delivered-To: apmail-openejb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 678772CE8 for ; Tue, 3 May 2011 02:58:49 +0000 (UTC) Received: (qmail 86568 invoked by uid 500); 3 May 2011 02:58:49 -0000 Delivered-To: apmail-openejb-commits-archive@openejb.apache.org Received: (qmail 86533 invoked by uid 500); 3 May 2011 02:58:49 -0000 Mailing-List: contact commits-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openejb.apache.org Delivered-To: mailing list commits@openejb.apache.org Received: (qmail 86524 invoked by uid 99); 3 May 2011 02:58:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 02:58:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 02:58:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 22930BEBF5 for ; Tue, 3 May 2011 02:58:03 +0000 (UTC) Date: Tue, 3 May 2011 02:58:03 +0000 (UTC) From: "Shawn Jiang (JIRA)" To: commits@openejb.apache.org Message-ID: <428370138.17345.1304391483138.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (OPENEJB-1536) Potential NPE in TimerData MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Potential NPE in TimerData -------------------------- Key: OPENEJB-1536 URL: https://issues.apache.org/jira/browse/OPENEJB-1536 Project: OpenEJB Issue Type: Bug Components: ejb31 Affects Versions: (trunk/openejb3) Reporter: Shawn Jiang Attachments: 0001-fix-potential-NPE.patch When timerConfig is null, following TimerData constructor will throw NPE. public TimerData(long id, EjbTimerServiceImpl timerService, String deploymentId, Object primaryKey, Method timeoutMethod, TimerConfig timerConfig) { this.id = id; this.timerService = timerService; this.deploymentId = deploymentId; this.primaryKey = primaryKey; this.info =timerConfig.getInfo(); this.persistent = timerConfig.isPersistent(); this.timer = new TimerImpl(this); this.timeoutMethod = timeoutMethod; } -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira