Bug 470803

Summary: org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml TypeError errors
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: System Tray widgetAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: materka
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nate Graham 2023-06-08 19:05:31 UTC
Jun 08 12:30:17 Liberator plasmashell[638613]: file:///home/nate/kde/usr6/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:126: TypeError: Cannot read property 'fullRepresentationItem' of null
Jun 08 12:30:17 Liberator plasmashell[638613]: file:///home/nate/kde/usr6/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:141: TypeError: Cannot read property 'plasmoid' of null

Seen in journal logs for Plasmashell on Plasma 6 Wayland git master.

Code in PlasmoidItem.qml does this:

126: target: findMouseArea(applet.compactRepresentationItem ? applet.compactRepresentationItem : applet.fullRepresentationItem)

141: target: plasmoidContainer.applet.plasmoid
Comment 1 Marco Martin 2023-06-09 09:00:25 UTC
Git commit f1fa17d9159f220835d8b3cd421213feef7597ca by Marco Martin.
Committed on 09/06/2023 at 08:59.
Pushed by mart into branch 'master'.

guard against possible nulls

M  +2    -2    applets/systemtray/package/contents/ui/items/PlasmoidItem.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/f1fa17d9159f220835d8b3cd421213feef7597ca