diff --git a/libultraship/libultraship/Window.cpp b/libultraship/libultraship/Window.cpp index d929b5ea3..d17ec049a 100644 --- a/libultraship/libultraship/Window.cpp +++ b/libultraship/libultraship/Window.cpp @@ -293,6 +293,9 @@ namespace Ship { void Window::ReadText(const char textToRead[]) { + if (textToRead == nullptr) { + return; + } std::string textCopy(textToRead); std::thread t1(task1, textCopy); t1.detach();