forked from anadon/JLS
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Simulator crashes when a StateMachine has no initial state
Description
If a circuit contains a StateMachine element with no defined initial
state, starting the simulator results in a NullPointerException.
This occurs because currentState is null when
StateMachine.initSim() attempts to call
currentState.sendOutputs(...).
Instead of reporting a user-facing error, the simulator crashes and
generates a bug report dialog.
Steps to Reproduce
- Create a new circuit.
- Add a
StateMachineelement. - Do not add any states (or remove all states).
- Start the interactive simulator.
Expected Behavior
The simulator should display a clear error message indicating that the
state machine has no initial state and prevent the simulation from
starting.
Actual Behavior
The simulator crashes with a NullPointerException.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels