Browse Source

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

Tobias Conradi 9 years ago
parent
commit
441cf5181a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/VLCCloudStorageTableViewCell.m

+ 1 - 1
Sources/VLCCloudStorageTableViewCell.m

@@ -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:@""];