Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'controller/settingscontroller.php')
-rw-r--r--controller/settingscontroller.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/controller/settingscontroller.php b/controller/settingscontroller.php
index 33290b8..6366d2e 100644
--- a/controller/settingscontroller.php
+++ b/controller/settingscontroller.php
@@ -145,6 +145,10 @@ class SettingsController extends Controller {
$this->logger->debug("CommandRequest on check: " . json_encode($commandResponse), array("app" => $this->appName));
+ if (empty($commandResponse)) {
+ throw new \Exception($this->trans->t("Error occurred in the document service"));
+ }
+
$version = floatval($commandResponse->version);
if ($version < 4.2) {
throw new \Exception($this->trans->t("Not supported version"));