From 11735bed886724b761d9726931e2e5f93995db50 Mon Sep 17 00:00:00 2001 From: chinloong Date: Tue, 11 Jul 2017 16:18:26 +0800 Subject: [PATCH] Fix nil string parameter error --- Video.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Video.js b/Video.js index 4d69b333..b7c6b89d 100644 --- a/Video.js +++ b/Video.js @@ -162,6 +162,8 @@ export default class Video extends Component { let uri = source.uri || ''; if (uri && uri.match(/^\//)) { uri = `file://${uri}`; + } else if (uri === '') { + return null; } const isNetwork = !!(uri && uri.match(/^https?:/));