Commit a9ef4f57 authored by Carola Nitz's avatar Carola Nitz

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

parent 221e2d9a
Pipeline #141 failed with stage
in 0 seconds
......@@ -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) {
......
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