فهرست منبع

VLCDropBoxController: make sure we're not accidenatlly calling listFolder with nil

(cherry picked from commit a9ef4f5710d68a6af0fac44ef60e264c389dc415)
Carola Nitz 7 سال پیش
والد
کامیت
b23cde5c87
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Sources/VLCDropboxController.m

+ 1 - 1
Sources/VLCDropboxController.m

@@ -193,7 +193,7 @@
 - (void)listFiles:(NSString *)path
 {
     // DropBox API prefers an empty path than a '/'
-    if ([path isEqualToString:@"/"]) {
+    if (!path || [path isEqualToString:@"/"]) {
         path = @"";
     }
     [[[self client].filesRoutes listFolder:path] setResponseBlock:^(DBFILESListFolderResult * _Nullable result, DBFILESListFolderError * _Nullable routeError, DBRequestError * _Nullable networkError) {