diff --git a/src/components/camera/Camera.cpp b/src/components/camera/Camera.cpp index 60fb17465..f5fbc8a02 100644 --- a/src/components/camera/Camera.cpp +++ b/src/components/camera/Camera.cpp @@ -156,6 +156,11 @@ void CameraRenderer::updateWindowId () { bool CameraRenderer::notifyReceivedVideoSize () const { shared_ptr videoDefinition = mCall->getCurrentParams()->getReceivedVideoDefinition(); + + // Can be null if the receiver quickly disconnects. Rare but possible. + if (!videoDefinition) + return false; + unsigned int width = videoDefinition->getWidth(); unsigned int height = videoDefinition->getHeight();