Skip to content

Conversation

@yleteigner
Copy link

On a recent plasma desktop (5.19.3), I get the below syslog filling out my logs:
plasmashell[112996]: file:///usr/local/share/plasma/plasmoids/org.kde.resourcesMonitor/contents/ui/HistoryGraph.qml:41: TypeError: Cannot read property 'height' of null
This patch clears it out.

plasmashell[112996]: file:///usr/local/share/plasma/plasmoids/org.kde.resourcesMonitor/contents/ui/HistoryGraph.qml:41: TypeError: Cannot read property 'height' of null
height: historyGraph.height * graphItemPercent
x: 0
y: parent.height - height
y: parent === null ? 0 : parent.height - height
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about something like this?

Suggested change
y: parent === null ? 0 : parent.height - height
y: historyGraph.height - height

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants