Skip to content

Commit 02a6c13

Browse files
author
rev308
committed
Bugfix
1 parent 3aea0c4 commit 02a6c13

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Ghidra/Framework/Docking/src/main/java/docking/widgets/table/GTableAutoLookup.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ public String getValueString(int row, int col) {
5757

5858
@Override
5959
public boolean isSorted(int column) {
60-
SortedTableModel sortedModel = (SortedTableModel) table.getModel();
61-
return column == sortedModel.getPrimarySortColumnIndex();
60+
61+
if (table.getModel() instanceof SortedTableModel) {
62+
SortedTableModel sortedModel = (SortedTableModel) table.getModel();
63+
return column == sortedModel.getPrimarySortColumnIndex();
64+
}
65+
return false;
6266
}
6367

6468
@Override

0 commit comments

Comments
 (0)