mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
IJPL-158442 don't call contentManager.getComponent() if disposed
GitOrigin-RevId: bcf20fb8f8e7ca55211e09ac709c86bc17fe8a4f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e5dd4a5db1
commit
6fb2ac4682
@@ -59,7 +59,7 @@ public abstract class XDebugView implements Disposable {
|
||||
DataContext dataContext = DataManager.getInstance().getDataContext(component);
|
||||
ViewContext viewContext = ViewContext.CONTEXT_KEY.getData(dataContext);
|
||||
ContentManager contentManager = viewContext == null ? null : viewContext.getContentManager();
|
||||
if (contentManager != null) {
|
||||
if (contentManager != null && !contentManager.isDisposed()) {
|
||||
T data = key.getData(DataManager.getInstance().getDataContext(contentManager.getComponent()));
|
||||
if (data != null) {
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user