IDEMPIERE-364 - Fixing IndexOutOfBoundException when user selected field removed from Grid Sequence

This commit is contained in:
Deepak Pansheriya 2012-08-24 17:24:25 +05:30
parent 283d5c97e0
commit 1141bf1d6b
1 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,9 @@ public class GridPanel extends Borderlayout implements EventListener<Event>
int AD_Field_ID = Integer.parseInt(fieldIdStr); int AD_Field_ID = Integer.parseInt(fieldIdStr);
for(GridField gridField : tmpFields) { for(GridField gridField : tmpFields) {
if (gridField.getAD_Field_ID() == AD_Field_ID) { if (gridField.getAD_Field_ID() == AD_Field_ID) {
if(gridField.isDisplayedGrid())
fieldList.add(gridField); fieldList.add(gridField);
break; break;
} }
} }