Commit b23cde5c authored by Carola Nitz's avatar Carola Nitz

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

(cherry picked from commit a9ef4f57)
parent 7777fcf2
Pipeline #142 failed with stage
in 0 seconds
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
- (void)listFiles:(NSString *)path - (void)listFiles:(NSString *)path
{ {
// DropBox API prefers an empty path than a '/' // DropBox API prefers an empty path than a '/'
if ([path isEqualToString:@"/"]) { if (!path || [path isEqualToString:@"/"]) {
path = @""; path = @"";
} }
[[[self client].filesRoutes listFolder:path] setResponseBlock:^(DBFILESListFolderResult * _Nullable result, DBFILESListFolderError * _Nullable routeError, DBRequestError * _Nullable networkError) { [[[self client].filesRoutes listFolder:path] setResponseBlock:^(DBFILESListFolderResult * _Nullable result, DBFILESListFolderError * _Nullable routeError, DBRequestError * _Nullable networkError) {
......
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