Skip to content

Commit ec33254

Browse files
author
denisbevilacqua
committed
Fix the swift runtime failure on getImagePathFromUIImage
1 parent 80a183e commit ec33254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/MediaResponse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func getThumbnail(from moviePath: String, in seconds: Double) -> String? {
9999
thumbnail = UIImage(cgImage: imgRef)
100100
}
101101

102-
let fullPath = getImagePathFromUIImage(uiImage: thumbnail!, prefix: "thumb")
102+
let fullPath = thumbnail != nil ? getImagePathFromUIImage(uiImage: thumbnail!, prefix: "thumb") : nil
103103

104104
return fullPath;
105105

0 commit comments

Comments
 (0)