IDEMPIERE-4863 Enable save column width in WListBox (#956)
add size/index check
This commit is contained in:
parent
28638d075b
commit
ef7e2e9ba2
|
@ -1351,6 +1351,9 @@ public class WListbox extends Listbox implements IMiniTable, TableValueChangeLis
|
|||
if (listHead != null && layout != null)
|
||||
{
|
||||
List<?> headers = listHead.getChildren();
|
||||
if (headers.size() != layout.length)
|
||||
return;
|
||||
|
||||
int i = 0;
|
||||
for(Object obj : headers)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue