Fix NPE after call failure.

This commit is contained in:
Alex Hart 2020-03-25 13:12:42 -03:00 committed by Greyson Parrelli
parent 0269a3eb6f
commit 7e9e2fead2

View file

@ -924,6 +924,7 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
callManager.setVideoEnable(enable);
} catch (CallException e) {
callFailure("setVideoEnable() failed: ", e);
return;
}
localCameraState = camera.getCameraState();