IDEMPIERE-5491 Info Window - implement Select/DeSelect All buttons (FHCA-4016) - Fix NPE (#1834)
This commit is contained in:
parent
5d367cbc29
commit
089f491363
|
@ -2973,12 +2973,15 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
||||||
// While restoring values we dong want to trigger listeners
|
// While restoring values we dong want to trigger listeners
|
||||||
model.removeTableModelListener(this);
|
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);
|
if(columnInfos[i].isReadOnly() == false) // Only replace editable column, in case some other data changed on db
|
||||||
model.setValueAt( obj, rowIndex, i);
|
{
|
||||||
|
Object obj = originalSelectedRow.get(i);
|
||||||
|
model.setValueAt( obj, rowIndex, i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue