Skip to content

Commit

Permalink
prevent crash when sending invalid video
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Jan 16, 2025
1 parent 074daf6 commit ac91371
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/co/tinode/tindroid/VideoViewFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,11 @@ private void sendVideo() {
return;
}

if (mVideoWidth <= 0 || mVideoHeight <= 0) {
Log.w(TAG, "sendVideo called for 0x0 video");
return;
}

Bundle inputArgs = getArguments();
if (inputArgs == null) {
Log.w(TAG, "sendVideo called with no arguments");
Expand Down

0 comments on commit ac91371

Please sign in to comment.