From 300996a77c781f20965d3d670bc9196fa625eaf0 Mon Sep 17 00:00:00 2001 From: Aliaksei Kryvasheyeu <65706367+akryvasheyeu@users.noreply.github.com> Date: Thu, 19 Mar 2026 18:20:09 +0100 Subject: [PATCH] Handle null value case in ToString method --- csharp/EPAM.Deltix.DFP/DotNetImpl.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csharp/EPAM.Deltix.DFP/DotNetImpl.cs b/csharp/EPAM.Deltix.DFP/DotNetImpl.cs index 31f51a2..afecdde 100644 --- a/csharp/EPAM.Deltix.DFP/DotNetImpl.cs +++ b/csharp/EPAM.Deltix.DFP/DotNetImpl.cs @@ -1429,6 +1429,8 @@ public static String ToString(UInt64 value, char decimalMark, bool floatStyle) { if (!IsFinite(value)) { + if (IsNull(value)) + return "Null"; // Value is either Inf or NaN // TODO: Do we need SNaN? return IsNaN(value) ? "NaN" : SignBit(value) ? "-Infinity" : "Infinity";