Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F90137
D7771.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
868 B
Referenced Files
None
Subscribers
None
D7771.diff
View Options
diff --git a/src/applications/harbormaster/storage/build/HarbormasterBuild.php b/src/applications/harbormaster/storage/build/HarbormasterBuild.php
--- a/src/applications/harbormaster/storage/build/HarbormasterBuild.php
+++ b/src/applications/harbormaster/storage/build/HarbormasterBuild.php
@@ -183,9 +183,12 @@
$repo = $object->getRepository();
}
- $results['repository.callsign'] = $repo->getCallsign();
- $results['repository.vcs'] = $repo->getVersionControlSystem();
- $results['repository.uri'] = $repo->getPublicRemoteURI();
+ if ($repo) {
+ $results['repository.callsign'] = $repo->getCallsign();
+ $results['repository.vcs'] = $repo->getVersionControlSystem();
+ $results['repository.uri'] = $repo->getPublicRemoteURI();
+ }
+
$results['step.timestamp'] = time();
$results['build.id'] = $this->getID();
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/wn/xg/kx4napdl2xseyxq3
Default Alt Text
D7771.diff (868 B)
Attached To
Mode
D7771: Fix an issue in Harbormaster when a buildable has no repository
Attached
Detach File
Event Timeline
Log In to Comment