"java.lang.NullPointerException" when opening reports with variable "RANGE" and "Not Assigned" checked

Stimulsoft Reports.Java discussion
Post Reply
webster.junior
Posts: 3
Joined: Tue May 11, 2021 11:42 am

"java.lang.NullPointerException" when opening reports with variable "RANGE" and "Not Assigned" checked

Post by webster.junior »

When we try to open reports built with "Stimulsoft Reports.Java.2020.2.2" in version "Stimulsoft Reports.Java.2021.3.6" for editing, the document does not open for editing and shows the following message: "java.lang.NullPointerException".
..
Error when trying to open report with variable "RANGE" and "Not Assigned" checked
Error when trying to open report with variable "RANGE" and "Not Assigned" checked
anexo_001.jpg (41.72 KiB) Viewed 740 times
The document in question, contains a variable "datetime" of type "Range" starting with "Value" where the "From" and "To" are marked with the option of "Not Assigned".
..
"datetime" variable of type "Range" marked with the option of "Not Assigned"
"datetime" variable of type "Range" marked with the option of "Not Assigned"
anexo_002.jpg (52.15 KiB) Viewed 740 times
P.S.: In this version 2021.3.6, when a variable is created in this way, referenced ("datetime" of type "Range" starting with "Value" where the "From" and "To" are marked with the option of "Not Assigned"), after save the variable and go back to editing it, the values of "Not Assigned" are not saved, reverting to the default form of "not checked".

We found a way to work around the problem, editing the report XML by inserting values in this position:
..
Example V_DATE variable marked with "Not Assigned" option
Example V_DATE variable marked with "Not Assigned" option
anexo_003.jpg (470.35 KiB) Viewed 740 times
But that settles for an urgent case. Does anyone know the prediction of the correctness of these two correlated issues?

1 - "java.lang.NullPointerException" when opening reports with variable "RANGE" and "Not Assigned" checked
2 - Failed to save variable "datetime" of type "Range" starting with "Value" where "From" and "To" are marked with option of "Not Assigned", not persisting option marked "Not Assigned"
Vadim
Posts: 292
Joined: Tue Apr 23, 2013 11:23 am

Re: "java.lang.NullPointerException" when opening reports with variable "RANGE" and "Not Assigned" checked

Post by Vadim »

Hello.

Fix will available since 2021.3.7 version
Post Reply