Bug 404178 - TypeError: Cannot read property 'textWidth' of null
Summary: TypeError: Cannot read property 'textWidth' of null
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: Application Dashboard (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-10 15:09 UTC by Serhiy Zahoriya
Modified: 2022-06-25 19:36 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serhiy Zahoriya 2019-02-10 15:09:07 UTC
SUMMARY
DashboardRepresentation.qml:977 does not check that filterList.currentItem is defined

STEPS TO REPRODUCE
1. Launch Plasma from terminal

OBSERVED RESULT
/usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/DashboardRepresentation.qml:977: TypeError: Cannot read property 'textWidth' of null


EXPECTED RESULT
No errors in terminal

SOFTWARE/OS VERSIONS
Linux: Ubuntu 19.04
KDE Plasma Version: 5.14.90
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.3

ADDITIONAL INFORMATION
+ (filterList.currentItem ? filterList.currentItem.textWidth : 0)
Comment 1 Christoph Feck 2019-03-09 15:08:08 UTC
Could you upload the patch to https://phabricator.kde.org/differential/diff/create/ so that Plasma developers can review them?

It is possible that the complete width should be 0 when there is no currentItem.
Comment 2 Christoph Feck 2019-03-24 14:20:57 UTC
Any success with the link from comment #1? More information about phabricator is available at https://community.kde.org/Infrastructure/Phabricator
Comment 3 Nate Graham 2022-06-25 19:36:23 UTC
Looks like that change was made at some point.