make the serializer a bit more robust

Authored by sebas on May 4 2016, 10:56 PM.

Description

make the serializer a bit more robust

Summary:
The daemon has some valid code pathes involving null configs. I've not
seen this particular part crashing, but it seems prudent to be a bit
more careful with the pointers we receive.

Also, debug message when writing fails, this seems to be a common
problem, and we should be able to debug this better when it happens.

Test Plan: autotests still pass

Reviewers: Plasma, graesslin

Reviewed By: Plasma, graesslin

Subscribers: graesslin, plasma-devel

Projects: Plasma

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

Details

Committed
sebasMay 6 2016, 12:08 PM
Reviewer
Plasma
Differential Revision
D1534: make the serializer a bit more robust
Parents
R104:338a781e71ee: guard access to unsafe config pointer
Branches
Unknown
Tags
Unknown