[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-2577) pageflow.hasTransition(...) throws NPE if not in process

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Mar 11 08:45:08 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-2577?page=all ]

Pete Muir updated JBSEAM-2577:
------------------------------

    Fix Version/s: 2.1.x

> pageflow.hasTransition(...) throws NPE if not in process
> --------------------------------------------------------
>
>                 Key: JBSEAM-2577
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2577
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: BPM
>    Affects Versions: 2.0.1.GA
>            Reporter: Matthew Lieder
>            Priority: Minor
>             Fix For: 2.1.x
>
>
> I use pageflow.hasTransition(...) to determine which buttons to show on various pages. Some pages however may be gotten to outside of a pageflow, and in those cases merely calling that one method throws a NPE because getNode() returns null. Hence I'm having to check pageflow.isInProcess() at the beginning of those EL expressions. It would be nice if hasTransition(...) (and probably hasDefaultTransition() ) could be modified to just return false if processInstance is null.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list