Only check for an empty source

This commit is contained in:
Hampton Maxwell 2019-02-18 21:34:34 -08:00 committed by GitHub
parent 865db71179
commit 075dfbaf7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -436,7 +436,7 @@ static int const RCTVideoUnset = -1;
bool isAsset = [RCTConvert BOOL:[source objectForKey:@"isAsset"]];
NSString *uri = [source objectForKey:@"uri"];
NSString *type = [source objectForKey:@"type"];
if([uri isEqualToString:@""] && [type isEqualToString:@""]) {
if (!uri || [uri isEqualToString:@""]) {
DebugLog(@"Could not find video URL in source '%@'", source);
return;
}