From d186c35265a74258843706c549c45b73a6eb3507 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 17 Dec 2013 21:23:26 -0500 Subject: [PATCH] IDEMPIERE-1638 BUG: Could not invoke Toolbar listener method: onRefresh() / IDEMPIERE-1584 --- .../adwindow/AbstractADWindowContent.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index 60c8b05694..ae1ad5590d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -1676,14 +1676,16 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements ADTabpanel adtabpanel = (ADTabpanel) iadtabpanel; Grid grid = adtabpanel.getGridView().getListbox(); Columns columns = grid.getColumns(); - List list = columns.getChildren(); - for(int i = 0; i < list.size(); i++) - { - Component c = (Component) list.get(i); - if (c instanceof Column) { - Column column = (Column) c; - if (!"natural".equals(column.getSortDirection())) { - return column; + if (columns != null) { + List list = columns.getChildren(); + for(int i = 0; i < list.size(); i++) + { + Component c = (Component) list.get(i); + if (c instanceof Column) { + Column column = (Column) c; + if (!"natural".equals(column.getSortDirection())) { + return column; + } } } }