diff --git a/JasperReports/src/org/compiere/report/ReportStarter.java b/JasperReports/src/org/compiere/report/ReportStarter.java index 836e3ca841..9ebd10c764 100644 --- a/JasperReports/src/org/compiere/report/ReportStarter.java +++ b/JasperReports/src/org/compiere/report/ReportStarter.java @@ -803,14 +803,16 @@ public class ReportStarter implements ProcessCall, ClientProcess { } private void addProcessInfoParameters(Map params, ProcessInfoParameter[] para) { - for (int i = 0; i < para.length; i++) { - if (para[i].getParameter_To() == null) { - params.put(para[i].getParameterName(), para[i].getParameter()); - } else { - params.put( para[i].getParameterName()+"1", para[i].getParameter()); - params.put( para[i].getParameterName()+"2", para[i].getParameter_To()); + if (para != null) { + for (int i = 0; i < para.length; i++) { + if (para[i].getParameter_To() == null) { + params.put(para[i].getParameterName(), para[i].getParameter()); + } else { + params.put( para[i].getParameterName()+"1", para[i].getParameter()); + params.put( para[i].getParameterName()+"2", para[i].getParameter_To()); + } } - } + } } /**