openpilot
openpilot copied to clipboard
[Cabana] Fix segfault in sparkline
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.