From 8578c30c55c9d6bc359fbbe1cd2d936524303053 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Sat, 23 Mar 2024 21:36:02 +0900 Subject: [PATCH] fix: Make sure to initialize values ThresholdLine misses initialization of values member variable in the parent SerieRenderer. This causes null access when Chart.add_serie() is called. --- src/threshold_line.vala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/threshold_line.vala b/src/threshold_line.vala index f2f226c..0ec3dee 100644 --- a/src/threshold_line.vala +++ b/src/threshold_line.vala @@ -9,6 +9,7 @@ namespace LiveChart { public ThresholdLine(double value) { base(); this.value = value; + this.values = new Values(); } public override void draw(Context ctx, Config config) {