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; + } } } }