From 099ef866348a573fafd972fb2db8ec18989e57d7 Mon Sep 17 00:00:00 2001 From: JC-Chung <52159296+JC-Chung@users.noreply.github.com> Date: Wed, 1 Jul 2026 13:32:05 +0800 Subject: [PATCH] fix: prevent crash in Chart.Render when repository has no commits --- src/Views/Chart.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Chart.cs b/src/Views/Chart.cs index 6eafbd44d..a6d196794 100644 --- a/src/Views/Chart.cs +++ b/src/Views/Chart.cs @@ -54,7 +54,7 @@ public override void Render(DrawingContext context) base.Render(context); var samples = _samples; - if (samples == null || samples.Count == 0) + if (samples == null || samples.Count <= 0) return; var w = Bounds.Width;