Avoid NullReferenceException

Stimulsoft Reports.Flex discussion
Locked
lsilva.gvdasa
Posts: 25
Joined: Tue Apr 11, 2017 4:47 pm

Avoid NullReferenceException

Post 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 2756 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 2756 times
The error when I run the report:
Capturar_3.JPG
Capturar_3.JPG (25.42 KiB) Viewed 2756 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Avoid NullReferenceException

Post by Alex K. »

Hello,

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

Thank you.
lsilva.gvdasa
Posts: 25
Joined: Tue Apr 11, 2017 4:47 pm

Re: Avoid NullReferenceException

Post 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.
lsilva.gvdasa
Posts: 25
Joined: Tue Apr 11, 2017 4:47 pm

Re: Avoid NullReferenceException

Post by lsilva.gvdasa »

erro.png
erro.png (108.82 KiB) Viewed 2740 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Avoid NullReferenceException

Post by Alex K. »

Hello,

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

Thank you.
Locked