diff --git a/src/nostalgia/studio/studioapp.cpp b/src/nostalgia/studio/studioapp.cpp index 5b3352d4..34e86d03 100644 --- a/src/nostalgia/studio/studioapp.cpp +++ b/src/nostalgia/studio/studioapp.cpp @@ -92,7 +92,9 @@ void StudioUI::handleKeyEvent(core::Key key, bool down) noexcept { break; } } - m_activeEditor->keyStateChanged(key, down); + if (m_activeEditor) { + m_activeEditor->keyStateChanged(key, down); + } } void StudioUI::draw() noexcept {