EA-78939 - TDDE: TraceableDisposable.throwDisposalError

This commit is contained in:
Dmitry Batrak
2016-05-31 12:07:35 +03:00
parent 99fe682d0b
commit 02cb98063b
@@ -192,7 +192,7 @@ abstract class UndoRedo {
}
private boolean restore(EditorAndState pair) {
if (myEditor == null || pair == null || pair.getEditor() == null) {
if (myEditor == null || !myEditor.isValid() || pair == null || pair.getEditor() == null) {
return false;
}