## Reproduction - Open https://dev.graphite.art/ - Create a new document with default artboard - Select `file->export` - Set the bounds to "Artboard" - Cancel the export - Delete the artboard (go to artboard tool, select artboard, press <kbd>Del</kbd>) - Select `file->export` again - Crash ``` panicked at editor/src/messages/dialog/export_dialog/export_dialog_message_handler.rs:125:99: called `Option::unwrap()` on a `None` value ``` ## Video of reproduction https://github.com/user-attachments/assets/6aad6a38-9b38-4e13-9517-acac527465bb ## Code Dialogue state is stored globally for the editor and is not reset when the dialogue is closed. https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/dispatcher.rs#L25 The dialogue assumes that the selected artboard `LayerNodeIdentifier` will continue to exist, and panics if this is not the case. https://github.com/GraphiteEditor/Graphite/blob/42440c0d0bcf5735b05d8a9e5bd27187f74b1589/editor/src/messages/dialog/export_dialog/export_dialog_message_handler.rs#L125
Reproduction
file->exportfile->exportagainVideo of reproduction
crash_export.mp4
Code
Dialogue state is stored globally for the editor and is not reset when the dialogue is closed.
Graphite/editor/src/dispatcher.rs
Line 25 in 42440c0
The dialogue assumes that the selected artboard
LayerNodeIdentifierwill continue to exist, and panics if this is not the case.Graphite/editor/src/messages/dialog/export_dialog/export_dialog_message_handler.rs
Line 125 in 42440c0