Merge pull request #695 from chinloongtan/master

Fix nil string uri parameter error
This commit is contained in:
Eran Hammer 2022-04-22 00:05:12 -07:00 committed by GitHub
commit a0716335d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,6 +268,8 @@ export default class Video extends Component {
let uri = source.uri || '';
if (uri && uri.match(/^\//)) {
uri = `file://${uri}`;
} else if (uri === '') {
return null;
}
if (!uri) {