summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-13 09:43:45 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-13 09:43:45 +0200
commit906b6b7337b7cd8922c0b1287f25bf03fff5c471 (patch)
treeb1ffd4e5dd9ba11b2fc80790cd3d6b28214b05de /lib/private
parent75adee1ebd088819d6c3737bd7069419f268bf0d (diff)
downloadnextcloud-server-906b6b7337b7cd8922c0b1287f25bf03fff5c471.tar.gz
nextcloud-server-906b6b7337b7cd8922c0b1287f25bf03fff5c471.zip
Prevent php message: "Trying to get property of non-object at /xxx/lib/private/ocsclient.php#282"
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/ocsclient.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/ocsclient.php b/lib/private/ocsclient.php
index 84469cb5e0d..b00772fb799 100644
--- a/lib/private/ocsclient.php
+++ b/lib/private/ocsclient.php
@@ -262,6 +262,9 @@ class OCSClient {
}
$tmp = $data->data->content;
+ if (is_null($tmp)) {
+ return null;
+ }
$app = [];
$app['id'] = (int)$tmp->id;