Procházet zdrojové kódy

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

Tobias Conradi před 9 roky
rodič
revize
441cf5181a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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:@""];