Commit eb688b1d authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Felix Paul Kühne

fix crash when thumbnailURL ist NSNull

parent 26e26794
......@@ -174,7 +174,7 @@
else if (self.oneDriveFile.isVideo) {
self.thumbnailView.image = [UIImage imageNamed:@"movie"];
NSString *thumbnailURLString = _oneDriveFile.thumbnailURL;
if (thumbnailURLString) {
if ([thumbnailURLString isKindOfClass:[NSString class]]) {
[self.thumbnailView setImageWithURL:[NSURL URLWithString:thumbnailURLString]];
}
} else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment