[action] do not throw an exception when stub is returned instead of editor

GitOrigin-RevId: d756e71268a5151d14ab12301503467417c219e8
This commit is contained in:
Ivan Semenov
2024-02-29 10:29:51 +00:00
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)