IDEMPIERE-1638 BUG: Could not invoke Toolbar listener method: onRefresh() / IDEMPIERE-1584

This commit is contained in:
Carlos Ruiz 2013-12-17 21:23:26 -05:00
parent 5f9c1f7dc8
commit d186c35265
1 changed files with 10 additions and 8 deletions

View File

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