I can't open my animation any longer because of a crash

export.zip

Hi, I came a cross a crashing issue of sorts where if I open a certain layer in my state machine definition it crashes, the web and the macos desktop app crash both on the same moment, and now when I try to re-open the animation file, I can't access it anymore.

This is the crash logs:

Date: 2026-04-24 14:21:02.609774Z

System: Mac

Application: App

Editor Version: 0.8.4682

Editor Environment: prod

User: 1155786 - signedIn: true

Error:

type 'Null' is not a subtype of type 'StateMachineStageItem<StateMachineLayerComponent>' in type cast

#0 StageItemState.stageItem (package:rive_editor/rive/stage/state_machine/state_machine_stage.dart:105)

#1 StateMachineStage._alignConnections (package:rive_editor/rive/stage/state_machine/state_machine_stage.dart:698)

#2 StateMachineStage.prepDraw (package:rive_editor/rive/stage/state_machine/state_machine_stage.dart:174)

#3 Stage.drawRiveRenderer (package:rive_editor/rive/stage/stage.dart:1842)

#4 StageViewRiveRenderObject.paintIntoSharedTexture (package:riveeditor/widgets/stage_view.dart:341)

#5 SharedRenderTexture.paintShared (package:rive_editor/widgets/inherited_widgets.dart:335)

#6 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1434)

#7 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1361)

#8 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1200)

#9 _rootRun (dart:async/zone.dart:1525)

#10 _CustomZone.run (dart:async/zone.dart:1422)

#11 _CustomZone.runGuarded (dart:async/zone.dart:1321)

#12 _invoke (dart:ui/hooks.dart:332)

#13 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:444)

#14 _drawFrame (dart:ui/hooks.dart:302)