Page MenuHomeDevCentral

D872.diff
No OneTemporary

D872.diff

diff --git a/app/Phabricator/PhabricatorStory.php b/app/Phabricator/PhabricatorStory.php
--- a/app/Phabricator/PhabricatorStory.php
+++ b/app/Phabricator/PhabricatorStory.php
@@ -198,7 +198,16 @@
return "";
}
- return PhabricatorAPI::getFirstResult($reply)->repositoryPHID;
+ $apiResult = PhabricatorAPI::getFirstResult($reply);
+ if ($apiResult === null) {
+ // Repository information can't be fetched (T1136).
+ // This occurs when the bot account used to fetch information
+ // doesn't have access to the repository, for example if it's
+ // in a private space or restricted to a group it doesn't belong to.
+ return "";
+ }
+
+ return $apiResult->repositoryPHID;
}
/**

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 02:34 (19 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2268124
Default Alt Text
D872.diff (800 B)

Event Timeline