Skip to content
Commit 88918ab8 authored by Harald Sitter's avatar Harald Sitter 🐧
Browse files

do not dereference `current` outside guard condition

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

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D22404
parent ec63673c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment