DO NOT REPLY [Bug 49944] New: Error when reviewer publishes with "Notify the submitter:" is checked

[email protected]
Newsgroups gmane.comp.cms.lenya.devel
Message-ID <[email protected]/bugzilla/>
https://issues.apache.org/bugzilla/show_bug.cgi?id=49944

           Summary: Error when reviewer publishes with "Notify the
                    submitter:" is checked
           Product: Lenya
           Version: 2.0.3
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Workflow
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=26039)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26039)
patch for org.apache.lenya.cms.workflow.usecases.Publish

Causes: ERROR usecases.workflow - Could not commit/rollback usecase
[workflow.publish]: 
java.lang.NullPointerException
    at
org.apache.lenya.cms.site.tree2.SiteTreeRevisionVerifier.eventFired(SiteTreeRevisionVerifier.java:33)

Because the publish uscase creates an event not associated with a document. 
This is the source of the NPE.

A patch is attached.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.