mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix potential NPE.
This commit is contained in:
@@ -120,7 +120,8 @@ public class TerminalSessionEditor extends UserDataHolderBase implements FileEdi
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
if (!myFile.getUserData(FileEditorManagerImpl.CLOSING_TO_REOPEN)) {
|
||||
Boolean closingToReopen = myFile.getUserData(FileEditorManagerImpl.CLOSING_TO_REOPEN);
|
||||
if (closingToReopen == null || !closingToReopen) {
|
||||
myFile.getTerminal().close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user