summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-06-24 15:56:33 +0200
committerRobin Appelman <icewind@owncloud.com>2016-06-24 15:56:33 +0200
commitee674844f2e3dc1eaf8f864fcbfa4d92484075ce (patch)
tree020ca255b17ce91c3c34b5a032d72c02f73c5bf0
parent04e3da0cf51f23b501eaef34e4be771b15c6e6d2 (diff)
downloadnextcloud-server-ee674844f2e3dc1eaf8f864fcbfa4d92484075ce.tar.gz
nextcloud-server-ee674844f2e3dc1eaf8f864fcbfa4d92484075ce.zip
better detect errors in fed sharing response
-rw-r--r--core/js/shareitemmodel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js
index 3ced66a1a78..9f75ac42f21 100644
--- a/core/js/shareitemmodel.js
+++ b/core/js/shareitemmodel.js
@@ -187,7 +187,7 @@
}).fail(function(xhr) {
var msg = t('core', 'Error');
var result = xhr.responseJSON;
- if (result.ocs && result.ocs.meta) {
+ if (result && result.ocs && result.ocs.meta) {
msg = result.ocs.meta.message;
}