mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-3147 - Fixed file chooser exception on cancel
This commit is contained in:
parent
10c7d641f0
commit
d7040f78a9
1 changed files with 17 additions and 17 deletions
|
@ -1963,14 +1963,14 @@ public class GhidraFileChooser extends ReusableDialogComponentProvider implement
|
|||
|
||||
@Override
|
||||
public void run(TaskMonitor monitor) {
|
||||
if (monitor.isCancelled()) {
|
||||
if (monitor.isCancelled() || worker.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
Swing.runLater(() -> {
|
||||
if (!monitor.isCancelled()) {
|
||||
if (!monitor.isCancelled() && !worker.isDisposed()) {
|
||||
runSwing();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue