[server] Ensure that Resource::Private::get returns nullptr if passed a nullptr
ClosedPublic

Authored by graesslin on Jun 17 2016, 1:55 PM.

Details

Summary

A Resource might be unbound, but not yet destroyed. In that case this
return a Resource instead of nullptr.

This change adds an explicit nullptr check.

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 4592.Jun 17 2016, 1:55 PM
graesslin retitled this revision from to [server] Ensure that Resource::Private::get returns nullptr if passed a nullptr.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma on Wayland.
Restricted Application added a project: Plasma on Wayland. · View Herald TranscriptJun 17 2016, 1:55 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas accepted this revision.Jun 21 2016, 1:54 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Jun 21 2016, 1:54 PM
This revision was automatically updated to reflect the committed changes.