]
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: