Skip to content

Return null for source audio with 0 length - #1215

Merged
jsarabia merged 1 commit into
devfrom
bugfix-prevent-empty-source-audio
Mar 2, 2026
Merged

Return null for source audio with 0 length#1215
jsarabia merged 1 commit into
devfrom
bugfix-prevent-empty-source-audio

Conversation

@jsarabia

@jsarabia jsarabia commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator

Prevent some crashes if a 0 length source audio is loaded for translation.

Returns null as a 0 length file for source audio is effectively equivalent to not being found at all. This prevents crashing on the consume page if a source audio file is empty.


This change is Reviewable

Prevent some crashes if a 0 length source audio is loaded for translation.

Returns null as a 0 length file for source audio is effectively equivalent to not being found at all. This prevents crashing on the consume page if a source audio file is empty.
@jsarabia
jsarabia merged commit cb9be99 into dev Mar 2, 2026
12 checks passed
jsarabia added a commit that referenced this pull request Mar 2, 2026
Prevent some crashes if a 0 length source audio is loaded for translation.

Returns null as a 0 length file for source audio is effectively equivalent to not being found at all. This prevents crashing on the consume page if a source audio file is empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants