java.lang.IllegalStateException: @NotNull method org/jetbrains/kotlin/descriptors/impl/ConstructorDescriptorImpl.substitute must not return null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via YouTrack by Unknown author, 1 year ago
@NotNull method org/jetbrains/kotlin/descriptors/impl/ConstructorDescriptorImpl.substitute must not return null
java.lang.IllegalStateException: @NotNull method org/jetbrains/kotlin/descriptors/impl/ConstructorDescriptorImpl.substitute must not return null
at org.jetbrains.kotlin.descriptors.impl.ConstructorDescriptorImpl.substitute(ConstructorDescriptorImpl.java:106)
at org.jetbrains.kotlin.idea.completion.smart.TypeInstantiationItems.createTypeInstantiationItem(TypeInstantiationItems.kt:213)
at org.jetbrains.kotlin.idea.completion.smart.TypeInstantiationItems.addTo(TypeInstantiationItems.kt:95)
at org.jetbrains.kotlin.idea.completion.smart.TypeInstantiationItems.addTo(TypeInstantiationItems.kt:78)
at org.jetbrains.kotlin.idea.completion.smart.SmartCompletion.additionalItemsNoPostProcess(SmartCompletion.kt:209)
at org.jetbrains.kotlin.idea.completion.smart.SmartCompletion.additionalItems(SmartCompletion.kt:95)
at org.jetbrains.kotlin.idea.completion.BasicCompletionSession$ALL$1$doComplete$1.invoke(BasicCompletionSession.kt:191)
at org.jetbrains.kotlin.idea.completion.BasicCompletionSession$ALL$1$doComplete$contextVariableTypesForSmartCompletion$1.invoke(BasicCompletionSession.kt:204)
at org.jetbrains.kotlin.idea.completion.BasicCompletionSession$ALL$1$doComplete$contextVariableTypesForSmartCompletion$1.invoke(BasicCompletionSession.kt:159)
at org.jetbrains.kotlin.idea.completion.CompletionSession.withCollectRequiredContextVariableTypes(CompletionSession.kt:419)
at org.jetbrains.kotlin.idea.completion.BasicCompletionSession$ALL$1.doComplete(BasicCompletionSession.kt:204)
at org.jetbrains.kotlin.idea.completion.BasicCompletionSession.doComplete(BasicCompletionSession.kt:130)
at org.jetbrains.kotlin.idea.completion.CompletionSession.complete(CompletionSession.kt:235)
at org.jetbrains.kotlin.idea.completion.KotlinCompletionContributor.doComplete(KotlinCompletionContributor.kt:300)
at org.jetbrains.kotlin.idea.completion.KotlinCompletionContributor.doComplete$default(KotlinCompletionContributor.kt:261)
at org.jetbrains.kotlin.idea.completion.KotlinCompletionContributor.performCompletion(KotlinCompletionContributor.kt:254)
at org.jetbrains.kotlin.idea.completion.KotlinCompletionContributor.access$performCompletion(KotlinCompletionContributor.kt:48)
at org.jetbrains.kotlin.idea.completion.KotlinCompletionContributor$provider$1.addCompletions(KotlinCompletionContributor.kt:61)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:155)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:132)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:125)
at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$2.addCompletions(LiveTemplateCompletionContributor.java:90)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:155)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81)
at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:110)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.java:776)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$500(CompletionProgressIndicator.java:90)
at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:758)
at com.intellij.codeInsight.completion.AsyncCompletion.b(CompletionThreading.java:87)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:856)
at com.intellij.codeInsight.completion.AsyncCompletion.a(CompletionThreading.java:84)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:494)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155)
at com.intellij.codeInsight.completion.AsyncCompletion.a(CompletionThreading.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.