Homec4science

Prevent an error when the Drydock lease artifact does not exist

Authored by J Rhodes <jrhodes@redpointsoftware.com.au> on May 31 2015, 16:39.

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

Committed
J Rhodes <jrhodes@redpointsoftware.com.au>May 31 2015, 16:39
Pushed
aubortJan 31 2017, 17:16
Parents
rPH8ea13f3ce934: Framework for external symbol search
Branches
Unknown
Tags
Unknown

Event Timeline

J Rhodes <jrhodes@redpointsoftware.com.au> committed rPHe7e585820b96: Prevent an error when the Drydock lease artifact does not exist (authored by J Rhodes <jrhodes@redpointsoftware.com.au>).May 31 2015, 16:39