Bug 446096 - QML error in ExpandedRepresentation.qml: TypeError: Cannot read property of undefined
Summary: QML error in ExpandedRepresentation.qml: TypeError: Cannot read property of u...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Media Player widget (other bugs)
Version First Reported In: master
Platform: openSUSE Linux
: NOR minor
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-26 01:39 UTC by Fushan Wen
Modified: 2021-11-29 19:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.24
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fushan Wen 2021-11-26 01:39:58 UTC
SUMMARY
If there is no media player opened and there is a media player applet on the desktop, plasmashell will report some errors at startup.

file:///usr/share/plasma/plasmoids/org.kde.plasma.mediacontroller/contents/ui/ExpandedRepresentation.qml:34: TypeError: Cannot read property 'CanSeek' of undefined
file:///usr/share/plasma/plasmoids/org.kde.plasma.mediacontroller/contents/ui/ExpandedRepresentation.qml:32: TypeError: Cannot read property 'Rate' of undefined
file:///usr/share/plasma/plasmoids/org.kde.plasma.mediacontroller/contents/ui/ExpandedRepresentation.qml:31: TypeError: Cannot read property 'Position' of undefined
Comment 1 Bug Janitor Service 2021-11-26 01:46:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1221
Comment 2 Nate Graham 2021-11-29 19:52:24 UTC
Git commit 1ccce6c18e7cc023c5cabfc054f2b12e3ad4fa98 by Nate Graham, on behalf of Fushan Wen.
Committed on 29/11/2021 at 19:41.
Pushed by ngraham into branch 'master'.

applets/mediacontroller: Fix "Cannot read property of undefined"

When no media player is opened and there is a media player applet on the
desktop, `mpris2Source.currentData` is undefined and plasmashell will
report some TypeErrors.
FIXED-IN: 5.24

M  +3    -3    applets/mediacontroller/contents/ui/ExpandedRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/commit/1ccce6c18e7cc023c5cabfc054f2b12e3ad4fa98