Commit 58a7c548 authored by Carola Nitz's avatar Carola Nitz

VLCDropboxController: show error if the destinationpath is nil and we can't download

(cherry picked from commit 259e7848)
parent b23cde5c
Pipeline #144 failed with stage
in 0 seconds
......@@ -216,6 +216,11 @@
if (!destination) {
[self _handleError:[NSError errorWithDomain:NSLocalizedString(@"GDRIVE_ERROR_DOWNLOADING_FILE", nil) code:415 userInfo:nil]];
// Need to replace all ' ' by '_' because it causes a `NSInvalidArgumentException ... destination path is nil` in the dropbox library.
destination = [destination stringByReplacingOccurrencesOfString:@" " withString:@"_"];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment