Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3790220
D872.id2215.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
800 B
Referenced Files
None
Subscribers
None
D872.id2215.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 04:50 (19 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2268124
Default Alt Text
D872.id2215.diff (800 B)
Attached To
Mode
D872: Fix null exception when Phabricator repository is private
Attached
Detach File
Event Timeline
Log In to Comment