Skip to content

Commit

Permalink
WITSML - FIX null reference exception for missing data in Point (#2643)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrlicman authored Jan 31, 2025
1 parent eec1e51 commit c9b5acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Witsml/Data/Curves/Point.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public Point(string commaSeparated)
? witsmlDateTime
: new DepthIndex(double.Parse(values.First(), CultureInfo.InvariantCulture));

Value = CurveValue.From(values[1]);
Value = CurveValue.From(values.Length > 1 ? values[1] : null);
}

public string GetValueAsString()
Expand Down

0 comments on commit c9b5acb

Please sign in to comment.