prevent NPE if the table is filtered

auto-update
Zlatin Balevsky 2021-10-21 21:13:25 +01:00
parent 33287c781c
commit 6be0267bb6
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 2 deletions

View File

@ -1600,8 +1600,8 @@ class MainFrameView {
tree.scrollPathToVisible(otherPath)
} else {
def table = builder.getVariable("shared-files-table")
int row = model.sharedFileIdx[sf]
if (row < 0)
Integer row = model.sharedFileIdx[sf]
if (row == null)
return
if (lastSharedSortEvent != null)
row = table.rowSorter.convertRowIndexToView(row)