aboutsummaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 9a39c6dc63..2a387d5539 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -308,6 +308,9 @@ class Notice extends Managed_DataObject
}
public function getObjectType($canonical=false) {
+ if (is_null($this->object_type) || $this->object_type==='') {
+ throw new NoObjectTypeException($this);
+ }
return ActivityUtils::resolveUri($this->object_type, $canonical);
}