check Buffer validity

Authored by mart on Jul 6 2017, 9:48 AM.

Description

check Buffer validity

Summary:
if a plasma theme doesn't provide shadow graphics,
the buffer will be a nullptr as would be created
from an invalid image and would crash

BUG:381953

Test Plan: no crash anymore when using a theme that doesn't provide shadows

Reviewers: Plasma, davidedmundson

Reviewed By: Plasma, davidedmundson

Subscribers: davidedmundson, plasma-devel, Frameworks

Tags: Plasma on Wayland, Frameworks

Differential Revision: https://phabricator.kde.org/D6523

Details

Committed
martJul 6 2017, 2:29 PM
Reviewer
Plasma
Differential Revision
D6523: check Buffer validity
Parents
R127:cfa0f1d3fab4: [autotests/server] Check whether test is run as root
Branches
Unknown
Tags
Unknown