diff --git a/Framework/Core/Interfaces/WindowInterface.cpp b/Framework/Core/Interfaces/WindowInterface.cpp index 45ab3e97..d47d55aa 100644 --- a/Framework/Core/Interfaces/WindowInterface.cpp +++ b/Framework/Core/Interfaces/WindowInterface.cpp @@ -291,6 +291,9 @@ std::vector& UImGui::Window::getMonitors() noexcept UImGui::Monitor UImGui::Window::getWindowMonitor() noexcept { + auto monitor = glfwGetWindowMonitor(Window::get().windowMain); + if (monitor == nullptr) + return {}; return Monitor(glfwGetWindowMonitor(Window::get().windowMain)); }