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)
Mon, Apr 29, 3:00 PM
Unknown Object (File)
Wed, Apr 24, 10:56 PM
Unknown Object (File)
Fri, Apr 19, 4:11 PM
Unknown Object (File)
Tue, Apr 16, 5:24 PM
Unknown Object (File)
Sat, Apr 13, 5:42 AM
Unknown Object (File)
Tue, Apr 9, 6:01 PM
Unknown Object (File)
Mar 5 2024, 11:40 AM
Unknown Object (File)
Mar 5 2024, 11:40 AM
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.