do not dereference `current` outside guard condition
ClosedPublic

Authored by sitter on Jul 11 2019, 2:57 PM.

Details

Summary

if current can be null, then clearly the one if must be nested inside
the guard if lest it trips over the nullptr when calling name().

Test Plan

builds

Diff Detail

Repository
R871 DrKonqi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Jul 11 2019, 2:57 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 11 2019, 2:57 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sitter requested review of this revision.Jul 11 2019, 2:57 PM
apol accepted this revision.Jul 11 2019, 6:40 PM
This revision is now accepted and ready to land.Jul 11 2019, 6:40 PM
This revision was automatically updated to reflect the committed changes.