[
https://issues.apache.org/jira/browse/SCXML-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rahul Akolkar updated SCXML-113:
--------------------------------
Fix Version/s: 1.0
0.10
Setting fix versions for now, will take a look soon.
> Log not initialized in 2 of 4 AbstractStateMachine constructors.
> ----------------------------------------------------------------
>
> Key: SCXML-113
> URL: https://issues.apache.org/jira/browse/SCXML-113
> Project: Commons SCXML
> Issue Type: Bug
> Affects Versions: 0.9
> Reporter: Eric Gulatee
> Priority: Blocker
> Fix For: 0.10, 1.0
>
>
> "Log" in AbstractStateMachine is NOT initialized if using either of these two
> constructors.
> This causes a NPE if a failure occurs while initializing the state machine.
> /**
> * Convenience constructor.
> *
> * @param stateMachine The parsed SCXML instance that
> * describes the "lifecycle" of the
> * instances of this class.
> *
> * @since 0.7
> */
> public AbstractStateMachine(final SCXML stateMachine) {
> // default is JEXL
> this(stateMachine, new JexlContext(), new JexlEvaluator());
> }
> /**
> * Primary constructor.
> *
> * @param stateMachine The parsed SCXML instance that
> * describes the "lifecycle" of the
> * instances of this class.
> * @param rootCtx The root context for this instance.
> * @param evaluator The expression evaluator for this instance.
> *
> * @see Context
> * @see Evaluator
> *
> * @since 0.7
> */
> public AbstractStateMachine(final SCXML stateMachine,
> final Context rootCtx, final Evaluator evaluator) {
> initialize(stateMachine, rootCtx, evaluator);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.