Skip to content

Fixed Crash on Missing Name & State of Fixed State Machine on Run.#25

Open
RexPaster wants to merge 1 commit intobsiever:masterfrom
RexPaster:state-machine-crash
Open

Fixed Crash on Missing Name & State of Fixed State Machine on Run.#25
RexPaster wants to merge 1 commit intobsiever:masterfrom
RexPaster:state-machine-crash

Conversation

@RexPaster
Copy link

@RexPaster RexPaster commented Mar 8, 2026

Summary

fixes #24

Adds validation for StateMachine elements before simulation begins to prevent the crash described in #24.

If a StateMachine is missing required information, a popup dialog is shown explaining the problem instead of allowing the simulator to start and fail later.

Changes

  • Added validation for StateMachine configuration.

  • Displays a popup if the state machine:

    • has no name
    • has no states
    • has neither a name nor states
  • Prevents the simulator from starting until the issue is fixed.

Motivation

Previously, invalid StateMachine configurations could lead to a NullPointerException during simulation initialization. This change provides clear feedback to the user and avoids the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash Caused by Stateless FSM

1 participant