Showing the changes to interface/src/scripting/ScreenshareScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -79,7 +79,7 @@ void ScreenshareScriptingInterface::stopScreenshare() { · 78 unmodified lines | ||
| 79 | 79 | return; |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | − if (_screenshareProcess->state() != QProcess::NotRunning) { | |
| 82 | + if (_screenshareProcess && _screenshareProcess->state() != QProcess::NotRunning) { | |
| 83 | 83 | _screenshareProcess->terminate(); |
| 84 | 84 | } |
| 85 | 85 | } |