Page 1 of 1

Avoid NullReferenceException

Posted: Fri May 26, 2017 7:51 pm
by lsilva.gvdasa
Hello guys!

I got a report with two data sources:

- The former is codded on backend;
- The latter is created by me using SQL statement wich I call a SQL FUNCTION using two fields of the other data source as PARAMETERS (i've created the parameters on DataSource builder) to return data.
Capturar.JPG
Capturar.JPG (12.22 KiB) Viewed 4043 times
My problem is that due to business reasons, the backend data source sometimes can return nothing and then I get a NullReferenceException because of this:
Capturar_2.JPG
Capturar_2.JPG (37.73 KiB) Viewed 4043 times
The error when I run the report:
Capturar_3.JPG
Capturar_3.JPG (25.42 KiB) Viewed 4043 times
The error only occurs with datetime types, I think it's because the datetime is a construct type and not like an integer for example, that returns 0 when was not changed.

Thks.

Re: Avoid NullReferenceException

Posted: Mon May 29, 2017 1:10 pm
by Alex K.
Hello,

Please provide more detailed information - which product, version and component are you use?

Thank you.

Re: Avoid NullReferenceException

Posted: Mon May 29, 2017 4:52 pm
by lsilva.gvdasa
I'm using Stimulsoft.Flex's version 2014.1.1900.
Aleksey wrote:Hello,

Please provide more detailed information - which product, version and component are you use?

Thank you.

Re: Avoid NullReferenceException

Posted: Mon May 29, 2017 5:02 pm
by lsilva.gvdasa
erro.png
erro.png (108.82 KiB) Viewed 4027 times

Re: Avoid NullReferenceException

Posted: Tue May 30, 2017 8:37 am
by Alex K.
Hello,

We couldn't reproduce this bug.
Please try to check the last release.

Thank you.