IDEMPIERE-2935 New record on GridMode error on fields with DisplayLogic / fix another NPE / IDEMPIERE-2972 Checkbox change in grid view cause NPE

This commit is contained in:
Carlos Ruiz 2015-12-12 11:12:09 -05:00
parent 7d92db3c56
commit 8c190a105e
1 changed files with 7 additions and 6 deletions

View File

@ -869,11 +869,12 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
public void checkDependants(ArrayList<GridField> dependantFields){
for (GridField field : dependantFields) {
if (field == null)
continue;
WEditor editor = editors.get(field);
boolean isEditable = field.isEditableGrid(true);
if (editor == null)
continue;
boolean isEditable = field.isEditableGrid(true);
editor.setReadWrite(isEditable);
if (isEditable)
gridPanel.refresh(gridTab);