HomePhabricator

Prevent an error when the Drydock lease artifact does not exist

Description

Prevent an error when the Drydock lease artifact does not exist

Summary: If a host artifact exists in a Harbormaster build, where the Drydock lease no longer exists, then an error will be raised because of the attempt to access an undefined index. This changes the code to use idx() so that it correctly returns null instead.

Test Plan: Tested in production.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: joshuaspence, Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D13074

Details

Provenance
hach-queAuthored on
hach-quePushed on May 31 2015, 2:40 PM
Reviewer
Blessed Reviewers
Differential Revision
D13074: Prevent an error when the Drydock lease artifact does not exist
Parents
rP8ea13f3ce934: Framework for external symbol search
Branches
Unknown
Tags
Unknown