aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Page.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Page.cpp')
-rw-r--r--src/plugins/Page.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/Page.cpp b/src/plugins/Page.cpp
index 48efeff..e444ecd 100644
--- a/src/plugins/Page.cpp
+++ b/src/plugins/Page.cpp
@@ -16,8 +16,10 @@ namespace QuickMedia {
return DownloadResult::NET_ERR;
}
- if(server_response.empty())
+ if(server_response.empty()) {
+ result = Json::Value::nullSingleton();
return DownloadResult::OK;
+ }
Json::CharReaderBuilder json_builder;
std::unique_ptr<Json::CharReader> json_reader(json_builder.newCharReader());