Commit f6c3facb authored by Andrew Kozlov's avatar Andrew Kozlov Committed by intellij-monorepo-bot
Browse files

[plugins] IDEA-316242 get operation should be poss

GitOrigin-RevId: 0cfec93ae4c8b4ddf1998bff153542e14c4bb317
parent 3fbba531
Showing with 1 addition and 1 deletion
+1 -1
......@@ -759,7 +759,6 @@ abstract class ComponentManagerImpl(
}
private fun <T : Any> getOrCreateLightService(serviceClass: Class<T>): T {
checkThatCreatingOfLightServiceIsAllowed(serviceClass)
synchronized(serviceClass) {
val adapter = componentKeyToAdapter.get(serviceClass.name) as LightServiceComponentAdapter?
if (adapter != null) {
......@@ -768,6 +767,7 @@ abstract class ComponentManagerImpl(
}
LoadingState.COMPONENTS_REGISTERED.checkOccurred()
checkThatCreatingOfLightServiceIsAllowed(serviceClass)
var result: T? = null
if (!isUnderIndicatorOrJob()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment