IDEMPIERE-4863 Enable save column width in WListBox (#956)

add size/index check
This commit is contained in:
hengsin 2021-10-28 22:27:15 +08:00 committed by GitHub
parent 28638d075b
commit ef7e2e9ba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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)
{