Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1536

Potential NPE in TimerData

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.7.0
    • 4.0
    • ejb31
    • None

    Description

      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; }

      Attachments

        1. 0001-fix-potential-NPE.patch
          1 kB
          Lin Quan Jiang

        Activity

          People

            Unassigned Unassigned
            genspring Lin Quan Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: