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)
|
tree.scrollPathToVisible(otherPath)
|
||||||
} else {
|
} else {
|
||||||
def table = builder.getVariable("shared-files-table")
|
def table = builder.getVariable("shared-files-table")
|
||||||
int row = model.sharedFileIdx[sf]
|
Integer row = model.sharedFileIdx[sf]
|
||||||
if (row < 0)
|
if (row == null)
|
||||||
return
|
return
|
||||||
if (lastSharedSortEvent != null)
|
if (lastSharedSortEvent != null)
|
||||||
row = table.rowSorter.convertRowIndexToView(row)
|
row = table.rowSorter.convertRowIndexToView(row)
|
||||||
|
|
Loading…
Reference in New Issue