Skip to content

Commit

Permalink
fix: Make sure to initialize values
Browse files Browse the repository at this point in the history
ThresholdLine misses initialization of values member variable in the parent SerieRenderer.
This causes null access when Chart.add_serie() is called.
  • Loading branch information
ryonakano committed Mar 23, 2024
1 parent ecd23aa commit 8578c30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/threshold_line.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8578c30

Please sign in to comment.