HomePhabricator

Fix method call on possible null

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

Provenance
epriestleyAuthored on Feb 10 2016, 8:34 PM
epriestleyPushed on Feb 10 2016, 8:44 PM
Reviewer
chad
Differential Revision
D15235: Fix method call on possible null
Parents
rP7bca452fad1b: Fix two issues with unusual milestone workboard initialization orders
Branches
Unknown
Tags
Unknown
Tasks
T10317: ssh-exec.php: possible null pointer dereference
Build Status
Buildable 10610
Build 13018: Run Core Tests