mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[action] do not throw an exception when stub is returned instead of editor
GitOrigin-RevId: d756e71268a5151d14ab12301503467417c219e8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9d6d9c82cf
commit
9760eeb0e6
@@ -142,7 +142,7 @@ open class EdtDataContext : DataContext, UserDataHolder, InjectedDataContextSupp
|
||||
|
||||
answer = calcData(dataId, component)
|
||||
if (CommonDataKeys.EDITOR.`is`(dataId) || CommonDataKeys.HOST_EDITOR.`is`(dataId) || InjectedDataKeys.EDITOR.`is`(dataId)) {
|
||||
answer = DataManagerImpl.validateEditor(answer as Editor?, component)
|
||||
answer = DataManagerImpl.validateEditor(answer as? Editor, component)
|
||||
}
|
||||
if (cacheable) {
|
||||
cachedData.put(dataId, answer ?: CustomizedDataContext.EXPLICIT_NULL)
|
||||
|
||||
Reference in New Issue
Block a user