Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent HistoryGraph from logging TypeError syslog #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
@@ -38,10 +38,10 @@ Item {
width: historyGraph.width / graphGranularity
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