Skip to content

Don't blindly assume that an SVG item has a platform theme assigned

On my admittedly broken setup where the Kirigami platform theme isn't found, unchecked access crashes KRunner and presumably other components as well (nullptr reference).

Wrapping this access in a conditional block fixes the crash.

MR note: I'm not sure why this is happening now, as there haven't been a lot of changes to this repo and the ones I see don't appear to touch this code. I'll figure out how to fix my setup eventually, but not crashing in the face of no platform theme seems prudent either way, yes?

Merge request reports