mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 21:03:42 -07:00
Add null check
This commit is contained in:
parent
f6a1e8ee9c
commit
a1ab42e59f
1 changed files with 3 additions and 0 deletions
|
@ -293,6 +293,9 @@ namespace Ship {
|
||||||
|
|
||||||
void Window::ReadText(const char textToRead[])
|
void Window::ReadText(const char textToRead[])
|
||||||
{
|
{
|
||||||
|
if (textToRead == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
std::string textCopy(textToRead);
|
std::string textCopy(textToRead);
|
||||||
std::thread t1(task1, textCopy);
|
std::thread t1(task1, textCopy);
|
||||||
t1.detach();
|
t1.detach();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue