Homec4science

Fix method call on possible null

Authored by epriestley <git@epriestley.com> on Feb 10 2016, 21:34.

Description

Fix method call on possible null

Summary: Fixes T10317. If we failed to load $device, it will be null, so we won't be able to call getName() on it.

Test Plan: SSH_CLIENT='127.0.0.1' ./bin/ssh-exec --phabricator-ssh-device xyz no longer fatals

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10317

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

Details

Committed
epriestley <git@epriestley.com>Feb 10 2016, 21:44
Pushed
aubortJan 31 2017, 17:16
Parents
rPH7bca452fad1b: Fix two issues with unusual milestone workboard initialization orders
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH3f920d890474: Fix method call on possible null (authored by epriestley <git@epriestley.com>).Feb 10 2016, 21:44