mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Fix NPE
This commit is contained in:
parent
6241b2184a
commit
735e73ad23
1 changed files with 4 additions and 2 deletions
|
@ -98,8 +98,10 @@ class ScanDialog extends DialogComp {
|
|||
@Override
|
||||
protected void discard() {
|
||||
ThreadHelper.runAsync(() -> {
|
||||
shellValidationContext.close();
|
||||
shellValidationContext = null;
|
||||
if (shellValidationContext != null) {
|
||||
shellValidationContext.close();
|
||||
shellValidationContext = null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue