List<ErrorInfo> () { RadPropertyTable component = (RadPropertyTable)myComponent; int selectedRow = component.getSelectedRow(); if (selectedRow < 0 || selectedRow >= component.getRowCount()) { return Collections.emptyList(); } ErrorInfo errorInfo = component.getErrorInfoForRow(selectedRow); if (errorInfo != null) { return Collections.singletonList(errorInfo); } return Collections.emptyList(); }