File tree 1 file changed +3
-3
lines changed
android/src/main/java/com/cloudwebrtc/webrtc
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -673,15 +673,15 @@ private VideoTrack getUserVideo(ConstraintsMap constraints) {
673
673
674
674
// Fall back to defaults if keys are missing.
675
675
int width
676
- = videoConstraintsMandatory .hasKey ("minWidth" )
676
+ = videoConstraintsMandatory != null && videoConstraintsMandatory .hasKey ("minWidth" )
677
677
? videoConstraintsMandatory .getInt ("minWidth" )
678
678
: DEFAULT_WIDTH ;
679
679
int height
680
- = videoConstraintsMandatory .hasKey ("minHeight" )
680
+ = videoConstraintsMandatory != null && videoConstraintsMandatory .hasKey ("minHeight" )
681
681
? videoConstraintsMandatory .getInt ("minHeight" )
682
682
: DEFAULT_HEIGHT ;
683
683
int fps
684
- = videoConstraintsMandatory .hasKey ("minFrameRate" )
684
+ = videoConstraintsMandatory != null && videoConstraintsMandatory .hasKey ("minFrameRate" )
685
685
? videoConstraintsMandatory .getInt ("minFrameRate" )
686
686
: DEFAULT_FPS ;
687
687
You can’t perform that action at this time.
0 commit comments