openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

[Cabana] Fix segfault in sparkline

Open robbederks opened this issue 2 years ago • 0 comments

With certain event-triggered multiplexed CAN signals, it's possible for points to be empty, which would cause a segfault when calling ->min().

Not sure if this is the cleanest way to add this check (with the early returns and duplicate pixmap = QPixmap()), open to suggestions.

robbederks avatar Dec 30 '23 14:12 robbederks