From ad9c2439a88a3847af0d764f2b80fea70ef34bc7 Mon Sep 17 00:00:00 2001 From: tsvikruha Date: Thu, 10 Dec 2015 08:54:00 -0500 Subject: [PATCH] IDEMPIERE-2935 New record on GridMode error on fields with DisplayLogic / fix NPE when dependent field is hidden --- org.adempiere.base-feature/model.generator.launch | 1 + .../src/org/adempiere/webui/adwindow/GridTabRowRenderer.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/org.adempiere.base-feature/model.generator.launch b/org.adempiere.base-feature/model.generator.launch index 73e58eaab0..dacc5ecabd 100644 --- a/org.adempiere.base-feature/model.generator.launch +++ b/org.adempiere.base-feature/model.generator.launch @@ -17,6 +17,7 @@ + diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java index 76e1a38b64..8daa8c18e8 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java @@ -872,6 +872,8 @@ public class GridTabRowRenderer implements RowRenderer, RowRendererExt WEditor editor = editors.get(field); boolean isEditable = field.isEditableGrid(true); + if(editor == null) + continue; editor.setReadWrite(isEditable); if( isEditable ) gridPanel.refresh(gridTab);