[Bug #1128] Fixed bug

Avoided nullpointer exception when changing between progress types

FEA: ItEr75S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2011-08-02 19:23:48 +02:00
parent 721de533a2
commit c7b4084fdb

View file

@ -233,10 +233,13 @@ public class ManageOrderElementAdvancesController extends
* preparation to select the advance line. Set the current selected
* index that will show when the grid reloads.
*/
AdvanceAssignment advance = (AdvanceAssignment) selectedItem.getValue();
indexSelectedItem = editAdvances.getIndexOfItem(selectedItem);
prepareEditAdvanceMeasurements(advance);
reloadAdvances();
if (selectedItem != null) {
AdvanceAssignment advance = (AdvanceAssignment) selectedItem
.getValue();
indexSelectedItem = editAdvances.getIndexOfItem(selectedItem);
prepareEditAdvanceMeasurements(advance);
reloadAdvances();
}
}
public void selectAdvanceLine(int index) {