summaryrefslogtreecommitdiff
path: root/plugins/CloudFile
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-06-03 15:20:23 +0300
committeraunsane <aunsane@gmail.com>2018-06-03 15:20:23 +0300
commit0fae00f05addee2e71081038b6700aa5eaeaf20b (patch)
tree99001a171f47fcfedd8409cee436951939a9e2fb /plugins/CloudFile
parent37adbb87dd60fa816235e9e8f2c216f20d03b635 (diff)
CloudFile: fix rare crash in dropbox
Diffstat (limited to 'plugins/CloudFile')
-rw-r--r--plugins/CloudFile/src/Services/dropbox_service.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp
index 7a95027d2a..bb67ff24fe 100644
--- a/plugins/CloudFile/src/Services/dropbox_service.cpp
+++ b/plugins/CloudFile/src/Services/dropbox_service.cpp
@@ -162,6 +162,9 @@ void CDropboxService::CreateFolder(const std::string &path)
DropboxAPI::CreateFolderRequest request(token, path.c_str());
NLHR_PTR response(request.Send(m_hConnection));
+ if (response == nullptr)
+ throw Exception(HttpStatusToError());
+
if (HTTP_CODE_SUCCESS(response->resultCode)) {
GetJsonResponse(response);
return;