Commit 441cf518 authored by Tobias's avatar Tobias

fix crash were NSNull instead of NSString was returned as thumbnailURL by one drive

parent efe9aad0
......@@ -174,7 +174,7 @@
else if (self.oneDriveFile.isVideo) {
self.thumbnailView.image = [UIImage imageNamed:@"movie"];
NSString *thumbnailURL = _oneDriveFile.thumbnailURL;
if (thumbnailURL != NULL) {
if ([thumbnailURL isKindOfClass:[NSString class]]) {
if (thumbnailURL.length > 0) {
_iconURL = [NSURL URLWithString:thumbnailURL];
[self performSelectorInBackground:@selector(_updateIconFromURL) withObject:@""];
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