From 6be0267bb63256abe34f0bab58a7708fc01e9580 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Thu, 21 Oct 2021 21:13:25 +0100 Subject: [PATCH] prevent NPE if the table is filtered --- gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy b/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy index 951ec9fa..d2d28fbf 100644 --- a/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy +++ b/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy @@ -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)