Sketcher: Add check for handler's existence

This commit is contained in:
Chris Hennes
2024-01-31 19:07:43 +01:00
parent e6004ff6c9
commit a54840c2c5

View File

@@ -454,7 +454,7 @@ public:
/// triggered by the controllable DSH after a mode change has been effected
virtual void afterHandlerModeChanged()
{
if (!handler->isState(SelectModeT::End) || handler->continuousMode) {
if (handler && (!handler->isState(SelectModeT::End) || handler->continuousMode)) {
handler->mouseMove(prevCursorPosition);
}
}