mirror of https://github.com/zlatinb/muwire
prevent NPE if the table is filtered
parent
33287c781c
commit
6be0267bb6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue