If the relationship is empty, an error occurs

Stimulsoft Reports.JAVA discussion
Post Reply
uortac
Posts: 1
Joined: Thu May 28, 2020 1:11 pm
Location: TURKEY

If the relationship is empty, an error occurs

Post by uortac »

Hi,

I use the json file as a source.

The report file works flawlessly in the designer or .net project.

I use one relationship. Between the question and the media.
relation.JPG
relation.JPG (29.38 KiB) Viewed 1748 times
But if there is no media in the questions in the java project, I get the following error.
stierror.JPG
stierror.JPG (105.24 KiB) Viewed 1748 times
I get the error during rendering.

java.lang.NullPointerException: null
at com.stimulsoft.report.dictionary.StiDataRelation.getChildRows(StiDataRelation.java:250) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.dictionary.dataSources.StiDataSource.SetDetails(StiDataSource.java:540) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.dictionary.dataSources.StiDataSource.SetData(StiDataSource.java:444) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.components.StiDataHelper.SetData(StiDataHelper.java:52) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.components.StiDataHelper.SetData(StiDataHelper.java:25) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.SetDetails(StiDataBandV2Builder.java:869) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.components.bands.StiDataBand.First(StiDataBand.java:215) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.components.StiDataHelper.SetData(StiDataHelper.java:58) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.components.StiDataHelper.SetData(StiDataHelper.java:25) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.engine.engineV2.builders.StiDataBandV2Builder.RenderMaster(StiDataBandV2Builder.java:1581) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.components.bands.StiDataBand.renderMaster(StiDataBand.java:1301) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.engine.engineV2.StiPageHelper.RenderPage(StiPageHelper.java:386) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.RenderReport(StiRenderProviderV2.java:985) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.Render(StiRenderProviderV2.java:325) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.engine.engineV2.builders.StiReportV2Builder.RenderSingleReport(StiReportV2Builder.java:65) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.StiReport.RenderReport(StiReport.java:2080) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.StiReport.Render(StiReport.java:1981) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.StiReport.Render(StiReport.java:1916) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.StiReport.Render(StiReport.java:1906) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.StiReport.Render(StiReport.java:1891) ~[stimulsoft-reports-report-2020.2.1.jar:na]
at com.stimulsoft.report.StiReport.render(StiReport.java:1874) ~[stimulsoft-reports-report-2020.2.1.jar:na]
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: If the relationship is empty, an error occurs

Post by Vadim »

Hello.

We have made an improvement.
Please, check our next build when it will be available.

Thank you.
Post Reply