diff --git a/src/applications/differential/storage/diff/DifferentialDiff.php b/src/applications/differential/storage/diff/DifferentialDiff.php index b0e576b01b..6affe5bf98 100644 --- a/src/applications/differential/storage/diff/DifferentialDiff.php +++ b/src/applications/differential/storage/diff/DifferentialDiff.php @@ -86,7 +86,11 @@ final class DifferentialDiff extends DifferentialDAO { } public function getBackingVersionControlSystem() { - $repository = $this->loadArcanistProject()->loadRepository(); + $arcanist_project = $this->loadArcanistProject(); + if (!$arcanist_project) { + return null; + } + $repository = $arcanist_project->loadRepository(); return $repository->getVersionControlSystem(); }