Bug 470805

Summary: org.kde.plasma.desktop/contents/applet/CompactApplet.qml:22: TypeError: Cannot read property 'expanded' of null
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: ContainmentAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: notmart
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2023-06-08 19:05:35 UTC
Jun 08 12:53:53 Liberator plasmashell[652848]: file:///home/nate/kde/usr6/share/plasma/shells/org.kde.plasma.desktop/contents/applet/CompactApplet.qml:22: TypeError: Cannot read property 'expanded' of null

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

Code on line 22 in CompactApplet.qml does this:

active: !plasmoidItem.expanded
Comment 1 Marco Martin 2023-06-09 07:58:14 UTC
Git commit b99b1e517da83df4cfa20a9dc7b4c4dc9d87284c by Marco Martin.
Committed on 09/06/2023 at 07:56.
Pushed by mart into branch 'master'.

some properties aren't immediately available

containment for Desktop and plasmoiditem for CompactApplet
become available only afer startup: guard them
Related: bug 470804

M  +1    -1    desktoppackage/contents/applet/CompactApplet.qml
M  +4    -2    desktoppackage/contents/views/Desktop.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/b99b1e517da83df4cfa20a9dc7b4c4dc9d87284c