Page MenuHomePhabricator

D19449.diff
No OneTemporary

D19449.diff

diff --git a/src/applications/dashboard/controller/PhabricatorDashboardProfileController.php b/src/applications/dashboard/controller/PhabricatorDashboardProfileController.php
--- a/src/applications/dashboard/controller/PhabricatorDashboardProfileController.php
+++ b/src/applications/dashboard/controller/PhabricatorDashboardProfileController.php
@@ -44,13 +44,16 @@
}
protected function buildApplicationCrumbs() {
- $dashboard = $this->getDashboard();
- $id = $dashboard->getID();
- $dashboard_uri = $this->getApplicationURI("/view/{$id}/");
-
$crumbs = parent::buildApplicationCrumbs();
- $crumbs->addTextCrumb($dashboard->getName(), $dashboard_uri);
$crumbs->setBorder(true);
+
+ $dashboard = $this->getDashboard();
+ if ($dashboard) {
+ $id = $dashboard->getID();
+ $dashboard_uri = $this->getApplicationURI("/view/{$id}/");
+ $crumbs->addTextCrumb($dashboard->getName(), $dashboard_uri);
+ }
+
return $crumbs;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 6:20 AM (21 h, 20 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6788463
Default Alt Text
D19449.diff (982 B)

Event Timeline