From 5c36f8425345b48adc354def8ed1443b4a236a20 Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 7 May 2013 08:08:35 -0400 Subject: [authority] Fixed out of bounds exception on cert generation for a filtered user --- src/main/java/com/gitblit/authority/GitblitAuthority.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/com/gitblit/authority/GitblitAuthority.java b/src/main/java/com/gitblit/authority/GitblitAuthority.java index 1a1f96db..1c0c142f 100644 --- a/src/main/java/com/gitblit/authority/GitblitAuthority.java +++ b/src/main/java/com/gitblit/authority/GitblitAuthority.java @@ -464,9 +464,9 @@ public class GitblitAuthority extends JFrame implements X509Log { // refresh user ucm.certs = null; - int modelIndex = table.convertRowIndexToModel(table.getSelectedRow()); + int selectedIndex = table.getSelectedRow(); tableModel.fireTableDataChanged(); - table.getSelectionModel().setSelectionInterval(modelIndex, modelIndex); + table.getSelectionModel().setSelectionInterval(selectedIndex, selectedIndex); if (sendEmail) { sendEmail(user, metadata, zip); -- cgit v1.2.3