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

Instead of crashing, show a warning and return #1246

Merged
merged 3 commits into from
Feb 19, 2019

Conversation

niklassaers
Copy link
Contributor

I was having an issue with iOS crashing in RCTVideo.m line 446 because sometimes my data wasn't as I thought it should be. pathForResource is nullable, yet initFileURLWithPath cannot take a null-parameter. This patch makes sure we don't get a null at all on bad input.

@niklassaers
Copy link
Contributor Author

(and provides a warning about it)

@cobarx
Copy link
Contributor

cobarx commented Sep 20, 2018

It's ok to have an empty type. I think we can just check the uri and be good. Haven't had a chance to test it though.

@cobarx cobarx merged commit f69231f into TheWidlarzGroup:master Feb 19, 2019
beauner69 pushed a commit to beauner69/react-native-video that referenced this pull request Oct 10, 2019
Instead of crashing, show a warning and return

(rebased from commit f69231f)
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