Skip to content

Can not access StateMachine in EventHandler over getSource() method #8

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?

public void onExceptionThrown(ExceptionEventArgs<FSM, FSMState, FSMEvent> arg) 
{ 
  FSM fsm = arg.getSource();   // returns null
  ...
}

What is the expected output? What do you see instead?
The FSM instance where the Exception occured should be returned. Instead null 
is returned.

What version of the product are you using? On what operating system?
2.0.0

Please provide any additional information below.
The Problem is the implementation of ContextEventArgsImpl class:

public TStateMachine getSource() {
   return null;
}

It should be:

public TStateMachine getSource() {
   return getStateContext().getStateMachine();
}


Original issue reported on code.google.com by maxim.mo...@googlemail.com on 30 Jan 2013 at 10:23

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions