Browse Source

Fix runtime exception

(cherry picked from commit f4ed2eb4c9a8e3a5e4a332baf9cfae04f5c8a3b2)
Felix Paul Kühne 10 years ago
parent
commit
2e9dfcaaac
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Sources/VLCGoogleDriveController.m

+ 3 - 0
Sources/VLCGoogleDriveController.m

@@ -110,6 +110,9 @@
 
 - (void)downloadFileToDocumentFolder:(GTLDriveFile *)file
 {
+    if (file == nil)
+        return;
+
     if ([file.mimeType isEqualToString:@"application/vnd.google-apps.folder"]) return;
 
     if (!_listOfGoogleDriveFilesToDownload)