xsharp.eu • Nullreferenceexception in Unformat with X# 2.6
Page 1 of 1

Nullreferenceexception in Unformat with X# 2.6

Posted: Wed Sep 23, 2020 6:24 am
by ArneOrtlinghaus
The following code generates an exception within the function Val
unformat("", "@Z 99", "N")

System.NullReferenceException
HResult=0x80004003
Message=Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Source=XSharp.RT
StackTrace:
at XSharp.RT.Functions.Val(String cNumber)
at XSharp.RT.TransformHelpers.UnformatN(String cValue, String cSayPicture, Boolean lNullable)
at XSharp.RT.Functions.Unformat(String cFormatString, String cSayPicture, String cType)
at ConsoleTests.Exe.Functions.Testvalempty(__Usual[] Xs$Args) in C:projectsxsharpBaseLibsrcConsoleTestsProgram.prg:line 7

Nullreferenceexception in Unformat with X# 2.6

Posted: Wed Sep 23, 2020 7:05 am
by Chris
Hi Arne,

Thanks, confirmed and fixed, will send you an update in a moment!

Nullreferenceexception in Unformat with X# 2.6

Posted: Wed Sep 23, 2020 7:15 am
by ArneOrtlinghaus
Thanks a lot.
It is not so urgent. As Robert is also working for me ("I feel important"), probably you can make a general update still this week.

Nullreferenceexception in Unformat with X# 2.6

Posted: Wed Sep 23, 2020 8:25 am
by Chris
Hi Arne,

OK, I think we will indeed need to shortly release a hotfix anyway with several small fixes, so will just include it in it.
Btw, when it is possible (not too complicated), we always try to provide quick fixes to customers directly, because we realize you guys need them to continue with your work. Everybody is very important :)