summaryrefslogtreecommitdiffstats
path: root/lib/private/share20/share.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/share20/share.php')
-rw-r--r--lib/private/share20/share.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/share20/share.php b/lib/private/share20/share.php
index e84d52b63a0..323d8c8e8ab 100644
--- a/lib/private/share20/share.php
+++ b/lib/private/share20/share.php
@@ -90,6 +90,9 @@ class Share implements \OCP\Share\IShare {
* @inheritdoc
*/
public function getFullId() {
+ if ($this->providerId === null || $this->id === null) {
+ throw new \UnexpectedValueException;
+ }
return $this->providerId . ':' . $this->id;
}