Page MenuHomePhabricator

Fix method call on possible null
ClosedPublic

Authored by epriestley on Feb 10 2016, 8:36 PM.
Tags
None
Referenced Files
F15285826: D15235.id36767.diff
Tue, Mar 4, 4:15 PM
F15285557: D15235.id36768.diff
Tue, Mar 4, 2:28 PM
F15285556: D15235.id.diff
Tue, Mar 4, 2:28 PM
Unknown Object (File)
Fri, Feb 28, 8:41 AM
Unknown Object (File)
Fri, Feb 14, 4:13 AM
Unknown Object (File)
Sun, Feb 9, 12:44 AM
Unknown Object (File)
Sun, Feb 9, 12:44 AM
Unknown Object (File)
Feb 1 2025, 4:00 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
Branch
device1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10609
Build 13017: Run Core Tests
Build 13016: arc lint + arc unit

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.