Do not crash when icon's source is empty
ClosedPublic

Authored by ahiemstra on Dec 5 2019, 11:19 AM.

Details

Summary

Kirigami gallery would crash on the overlay sheet page due to trying
to access m_theme which is a nullptr if setSource was never called.
Since trying to render an icon with an empty source does not make
much sense, just return when source is empty.

Test Plan

Kirigami Gallery no longer crashes on the overlay sheet page.

Diff Detail

Repository
R169 Kirigami
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ahiemstra created this revision.Dec 5 2019, 11:19 AM
Restricted Application added a project: Kirigami. · View Herald TranscriptDec 5 2019, 11:19 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ahiemstra requested review of this revision.Dec 5 2019, 11:19 AM
mart accepted this revision.Dec 5 2019, 1:02 PM
This revision is now accepted and ready to land.Dec 5 2019, 1:02 PM
This revision was automatically updated to reflect the committed changes.