Skip to content

Commit 3f093f3

Browse files
committed
Add warning when compiling with single_report=true but data_param_nested_class is None
1 parent 5b134df commit 3f093f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/report_compiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ def compile_report(self, report_filename, fill_params, tmpdir, resources, permit
310310
fill_params[data_param] = feature_id
311311
jasperPrints.add(self.SimpleExporterInputItem(self.JasperFillManager.getInstance(self.jContext).fill(jasperReport, fill_params, conn)))
312312
else:
313+
if data_param_nested_class is None:
314+
self.logger.error("Compiling with single_report=true, but %s is not defined as an array parameter" % data_param)
313315
data_param_list = self.ArrayList()
314316
for value in fill_params[data_param]:
315317
data_param_list.add(jpype.JClass(data_param_nested_class)(value))

0 commit comments

Comments
 (0)