[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2577) pageflow.hasTransition(...) throws NPE if not in process
Matthew Lieder (JIRA)
jira-events at lists.jboss.org
Mon Feb 4 10:05:03 EST 2008
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
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