Refs #186 Exception Замещаемые пользователи, нажатие кнопки "Редактировать" если не выбрана запись

This commit is contained in:
Konstantin Krivopustov 2010-01-11 06:49:08 +00:00
parent 9fd4064742
commit a7884c3d59

View File

@ -201,8 +201,9 @@ public class UserEditor extends AbstractEditor {
public void actionPerform(Component component) {
final CollectionDatasource<UserSubstitution, UUID> usDs = substTable.getDatasource();
openEditor("sec$UserSubstitution.edit", usDs.getItem(),
WindowManager.OpenType.DIALOG, usDs);
if (usDs.getItem() != null)
openEditor("sec$UserSubstitution.edit", usDs.getItem(),
WindowManager.OpenType.DIALOG, usDs);
}
}
}