mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup tests: fix NPE in light editors
GitOrigin-RevId: 3d2b8a95b899dbf3de1adbb59e132a6d8d15d8c4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cd38d3a588
commit
ddb1066c50
+3
-1
@@ -205,7 +205,9 @@ class FileEditorProviderManagerImpl
|
||||
}
|
||||
|
||||
updateState {
|
||||
FileEditorProviderManagerState(it.selectedProviders + (computeKey(list) to composite.selectedWithProvider!!.provider.editorTypeId))
|
||||
val selectedWithProvider = composite.selectedWithProvider
|
||||
val selected = if (selectedWithProvider == null) it.selectedProviders else it.selectedProviders + (computeKey(list) to selectedWithProvider.provider.editorTypeId)
|
||||
FileEditorProviderManagerState(selected)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user