IDEMPIERE-5645 - fix NPE on report Script columns (#1871)
This commit is contained in:
parent
66e0d4200e
commit
bb695cb79a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue