Page MenuHomePhabricator

Fix method call on possible null
ClosedPublic

Authored by epriestley on Feb 10 2016, 8:36 PM.
Tags
None
Referenced Files
F15502839: D15235.id36768.diff
Mon, Apr 14, 4:47 AM
F15497520: D15235.id.diff
Sun, Apr 13, 10:39 AM
F15497195: D15235.id36767.diff
Sun, Apr 13, 9:59 AM
F15492259: D15235.diff
Sat, Apr 12, 12:49 PM
F15425017: D15235.diff
Sun, Mar 23, 1:55 AM
F15421462: D15235.id.diff
Sat, Mar 22, 12:00 AM
F15420879: D15235.id36768.diff
Fri, Mar 21, 6:36 PM
F15407067: D15235.id36767.diff
Tue, Mar 18, 3:24 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.