diff --git a/engine/core/modules/platform_app/src/platform/windows/windows_window_manager_impl.cpp b/engine/core/modules/platform_app/src/platform/windows/windows_window_manager_impl.cpp index b536b4e6..edf5f2a9 100644 --- a/engine/core/modules/platform_app/src/platform/windows/windows_window_manager_impl.cpp +++ b/engine/core/modules/platform_app/src/platform/windows/windows_window_manager_impl.cpp @@ -289,8 +289,11 @@ namespace nau int height = HIWORD(lParam); auto* const coreGraphics = getServiceProvider().find(); - auto task = coreGraphics->requestViewportResize(width, height, hWnd); - task.detach(); + if (coreGraphics) + { + auto task = coreGraphics->requestViewportResize(width, height, hWnd); + task.detach(); + } } else if (message == WM_DESTROY) {