Page MenuHomePhabricator

Fix method call on possible null
ClosedPublic

Authored by epriestley on Feb 10 2016, 8:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 25, 10:10 PM
Unknown Object (File)
Mon, Dec 23, 8:06 AM
Unknown Object (File)
Wed, Dec 18, 1:08 AM
Unknown Object (File)
Wed, Dec 18, 1:08 AM
Unknown Object (File)
Wed, Dec 18, 1:08 AM
Unknown Object (File)
Wed, Dec 18, 1:07 AM
Unknown Object (File)
Tue, Dec 17, 10:42 AM
Unknown Object (File)
Mon, Dec 16, 6:25 PM
Subscribers
None

Details

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

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix method call on possible null.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Feb 10 2016, 8:36 PM
This revision was automatically updated to reflect the committed changes.