tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENEJB-1536) Potential NPE in TimerData
Date Tue, 03 May 2011 02:58:03 GMT
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

Mime
View raw message