Page 1 of 1

Expression with string.IsNullOrEmpty doesn't work

Posted: Fri Jan 17, 2020 12:44 pm
by ChrisDA
Hi,

we've been using Stimulsoft with ASP.NET MVC for years. After migrating to the ASP.NET Core version (on .NET Framework), however, conditional expressions with string.IsNullOrEmpty don't work anymore.

Examples:

This expression worked before, but doesn't work anymore:

Code: Select all

{(string.IsNullOrEmpty(Parameters.Location.Uri)) ? "unknown" : Parameters.Location.Uri}
The condition always returns FALSE.

This still works:

Code: Select all

{(Parameters.Location.Uri == null || Parameters.Location.Uri == "") ? "unknown" : Parameters.Location.Uri}
The condition works correctly.

Any ideas what causes this?

Thanks in advance.

Re: Expression with string.IsNullOrEmpty doesn't work

Posted: Mon Jan 20, 2020 7:49 am
by Lech Kulikowski
Hello,

We couldn't reproduce the issue on our sample.

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.