mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't process disposed editor (the commit is triggered by the reported exception)
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ public final class EditorHistoryManager extends AbstractProjectComponent impleme
|
||||
@Nullable FileEditorProvider fallbackProvider,
|
||||
final boolean changeEntryOrderOnly)
|
||||
{
|
||||
if (file == null){
|
||||
if (file == null) {
|
||||
return;
|
||||
}
|
||||
final FileEditorManagerEx editorManager = FileEditorManagerEx.getInstanceEx(myProject);
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -230,7 +230,7 @@ class TextEditorComponent extends JPanel implements DataProvider{
|
||||
* @return whether the editor is valid or not
|
||||
*/
|
||||
boolean isEditorValid(){
|
||||
return myValid;
|
||||
return myValid && !myEditor.isDisposed();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user