diff --git a/src/applications/phriction/controller/PhrictionDocumentController.php b/src/applications/phriction/controller/PhrictionDocumentController.php index 1a99de9cb2..f18a9f7bc2 100644 --- a/src/applications/phriction/controller/PhrictionDocumentController.php +++ b/src/applications/phriction/controller/PhrictionDocumentController.php @@ -115,7 +115,9 @@ final class PhrictionDocumentController $project = id(new PhabricatorProject())->loadOneWhere( 'phrictionSlug = %s', PhrictionDocument::getProjectSlugIdentifier($slug)); - $project_phid = $project->getPHID(); + if ($project) { + $project_phid = $project->getPHID(); + } } $phids = array_filter(