diff options
author | aunsane <aunsane@gmail.com> | 2018-06-03 15:20:23 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-06-03 15:20:23 +0300 |
commit | 0fae00f05addee2e71081038b6700aa5eaeaf20b (patch) | |
tree | 99001a171f47fcfedd8409cee436951939a9e2fb /plugins/CloudFile | |
parent | 37adbb87dd60fa816235e9e8f2c216f20d03b635 (diff) |
CloudFile: fix rare crash in dropbox
Diffstat (limited to 'plugins/CloudFile')
-rw-r--r-- | plugins/CloudFile/src/Services/dropbox_service.cpp | 3 |
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; |