History

Guard against a crash in stopScreenshare()

Zach Fox committed 7 years ago

Commit d8026301 parent d5c4b0c1 file · +1 −1Browse files

Showing the changes to interface/src/scripting/ScreenshareScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

interface/src/scripting/ScreenshareScriptingInterface.cpp+1−1
@@ -79,7 +79,7 @@ void ScreenshareScriptingInterface::stopScreenshare() { · 78 unmodified lines
7979 return;
8080 }
8181
82− if (_screenshareProcess->state() != QProcess::NotRunning) {
82+ if (_screenshareProcess && _screenshareProcess->state() != QProcess::NotRunning) {
8383 _screenshareProcess->terminate();
8484 }
8585 }