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)
Tue, Sep 3, 12:16 AM
Unknown Object (File)
Sun, Sep 1, 4:40 PM
Unknown Object (File)
Sun, Sep 1, 4:40 PM
Unknown Object (File)
Sun, Sep 1, 4:39 PM
Unknown Object (File)
Sun, Sep 1, 4:39 PM
Unknown Object (File)
Sat, Aug 31, 5:02 PM
Unknown Object (File)
Fri, Aug 30, 5:15 AM
Unknown Object (File)
Aug 22 2024, 10:47 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.