diff --git a/org.adempiere.base/src/org/compiere/print/DataEngine.java b/org.adempiere.base/src/org/compiere/print/DataEngine.java index 1ad97a7c0d..f03838866d 100644 --- a/org.adempiere.base/src/org/compiere/print/DataEngine.java +++ b/org.adempiere.base/src/org/compiere/print/DataEngine.java @@ -1170,6 +1170,8 @@ public class DataEngine for(PrintDataColumn c : scriptColumns) { pd.setRowIndex(i); PrintDataElement e = (PrintDataElement) pd.getNodeByPrintFormatItemId(c.getAD_PrintFormatItem_ID()); + if(e == null) // primarily on grouping rows, if no functions are assigned to the script column + continue; Object value = parseVariable(e.getValueAsString().replace("@SCRIPT", ""), c, pd); Interpreter bsh = new Interpreter(); try {