mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-3853 - Version Tracking - fix potential timing exception when
disposing
This commit is contained in:
parent
0f34531943
commit
c94c85157b
2 changed files with 10 additions and 2 deletions
|
@ -229,6 +229,10 @@ public class VTMatchTableProvider extends ComponentProviderAdapter
|
||||||
private VTMatchTableModel createTableModel() {
|
private VTMatchTableModel createTableModel() {
|
||||||
matchesTableModel = new VTMatchTableModel(controller);
|
matchesTableModel = new VTMatchTableModel(controller);
|
||||||
matchesTableModel.addTableModelListener(e -> {
|
matchesTableModel.addTableModelListener(e -> {
|
||||||
|
if (matchesTable == null) {
|
||||||
|
return; // we've been disposed
|
||||||
|
}
|
||||||
|
|
||||||
int filteredCount = matchesTableModel.getRowCount();
|
int filteredCount = matchesTableModel.getRowCount();
|
||||||
int unfilteredCount = matchesTableModel.getUnfilteredRowCount();
|
int unfilteredCount = matchesTableModel.getUnfilteredRowCount();
|
||||||
|
|
||||||
|
|
|
@ -168,6 +168,10 @@ public abstract class VTMatchOneToManyTableProvider extends ComponentProviderAda
|
||||||
protected GhidraTable initializeMatchesTable() {
|
protected GhidraTable initializeMatchesTable() {
|
||||||
oneToManyTableModel = getMatchesTableModel();
|
oneToManyTableModel = getMatchesTableModel();
|
||||||
oneToManyTableModel.addTableModelListener(e -> {
|
oneToManyTableModel.addTableModelListener(e -> {
|
||||||
|
if (matchesTable == null) {
|
||||||
|
return; // we've been disposed
|
||||||
|
}
|
||||||
|
|
||||||
if (pendingMatchSelection != null) {
|
if (pendingMatchSelection != null) {
|
||||||
setSelectedMatch(pendingMatchSelection);
|
setSelectedMatch(pendingMatchSelection);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue