Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent NPE if media details cannot be read #126

Merged
merged 1 commit into from
Aug 16, 2018
Merged

Prevent NPE if media details cannot be read #126

merged 1 commit into from
Aug 16, 2018

Conversation

brarcher
Copy link
Owner

A test run on Google's Firebase platform ended up selecting
a file that was not a media file, and hit a NPE when
ffprobe did not return json data.

This commit checks that the root json node exists before
attempting to use it.

A test run on Google's Firebase platform ended up selecting
a file that was not a media file, and hit a NPE when
ffprobe did not return json data.

This commit checks that the root json node exists before
attempting to use it.
@brarcher brarcher merged commit a169c71 into master Aug 16, 2018
@brarcher brarcher deleted the fix-npe branch August 16, 2018 22:54
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.

1 participant