[nostalgia/studio] Add null check for key input to active editor
This commit is contained in:
parent
0e8d2d7640
commit
2448bdcc82
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user