IDEMPIERE-5491 Info Window - implement Select/DeSelect All buttons (FHCA-4016) - Fix NPE (#1834)

This commit is contained in:
Carlos Ruiz 2023-05-16 10:29:28 +02:00 committed by GitHub
parent 5d367cbc29
commit 089f491363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -2973,12 +2973,15 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
// While restoring values we dong want to trigger listeners
model.removeTableModelListener(this);
for(int i=0; i < columnInfos.length; i++)
if (originalSelectedRow != null)
{
if(columnInfos[i].isReadOnly() == false) // Only replace editable column, in case some other data changed on db
for(int i=0; i < columnInfos.length; i++)
{
Object obj = originalSelectedRow.get(i);
model.setValueAt( obj, rowIndex, i);
if(columnInfos[i].isReadOnly() == false) // Only replace editable column, in case some other data changed on db
{
Object obj = originalSelectedRow.get(i);
model.setValueAt( obj, rowIndex, i);
}
}
}