Page MenuHomePhabricator

Prevent buildable list in Harbormaster from breaking when container or buildables are missing
ClosedPublic

Authored by hach-que on Mar 24 2014, 3:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 9:52 PM
Unknown Object (File)
Sun, Apr 21, 3:56 PM
Unknown Object (File)
Sun, Apr 21, 5:13 AM
Unknown Object (File)
Fri, Apr 19, 3:33 AM
Unknown Object (File)
Fri, Apr 19, 3:33 AM
Unknown Object (File)
Fri, Apr 19, 3:33 AM
Unknown Object (File)
Wed, Apr 17, 3:03 PM
Unknown Object (File)
Thu, Apr 11, 7:30 AM

Details

Summary

Ref T1049. I'm fair sure this is just a case of bad data in my local install, but we probably don't want the default page for Harbormaster to break when there's invalid / missing container or buildable handles on any of the builds.

Test Plan

Loaded the page, didn't get a crash due to null reference.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

hach-que retitled this revision from to Prevent buildable list in Harbormaster from breaking when container or buildables are missing.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.

In theory, handles should always load something, but this case is a little weird and we don't have a convenient way to get/attach a totally empty handle. This seems reasonable until we have some justification for doing that.

This revision is now accepted and ready to land.Mar 26 2014, 12:35 AM
epriestley updated this revision to Diff 20439.

Closed by commit rPfc3b5ddce6a5 (authored by @hach-que, committed by @epriestley).