Error in Velocity code generator

I add new fields (not static) to class elements by PsiAugmentProvider. I use LightFieldBuilder where not setContainingClass (because https://devnet.jetbrains.com/message/5535644#5535644).
In previous IDEA versions all was fine, but from previous (8 February). It's normal behaviour or not?

Caused by: Argument for @NotNull parameter 'element' of com/intellij/openapi/projectRoots/JavaVersionServiceImpl.getJavaSdkVersion must not be null
org.jetbrains.java.generate.exception.GenerateCodeException: Error in Velocity code generator
Caused by: Argument for @NotNull parameter 'element' of com/intellij/openapi/projectRoots/JavaVersionServiceImpl.getJavaSdkVersion must not be null
 at org.jetbrains.java.generate.GenerationUtil.velocityGenerateCode(GenerationUtil.java:232)
 at org.jetbrains.java.generate.GenerationUtil.velocityGenerateCode(GenerationUtil.java:142)
 at com.intellij.codeInsight.generation.GenerateMembersUtil.a(GenerateMembersUtil.java:648)
 at com.intellij.codeInsight.generation.GenerateMembersUtil.generateGetterPrototype(GenerateMembersUtil.java:636)
 at com.intellij.codeInsight.generation.GetterSetterPrototypeProvider.generateGetterSetters(GetterSetterPrototypeProvider.java:61)
 at com.intellij.codeInsight.generation.GetterSetterPrototypeProvider.generateGetterSetters(GetterSetterPrototypeProvider.java:50)
 at com.intellij.codeInsight.completion.JavaGenerateMemberCompletionContributor.a(JavaGenerateMemberCompletionContributor.java:77)
 at com.intellij.codeInsight.completion.JavaGenerateMemberCompletionContributor.a(JavaGenerateMemberCompletionContributor.java:67)
 at com.intellij.codeInsight.completion.JavaGenerateMemberCompletionContributor.fillCompletionVariants(JavaGenerateMemberCompletionContributor.java:58)
 at com.intellij.codeInsight.completion.LombokCompletionContributor.fillCompletionVariants(LombokCompletionContributor.java:290)
 at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81)
 at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:135)
 at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:128)
 at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:115)
 at com.intellij.codeInsight.completion.JavaNoVariantsDelegator.fillCompletionVariants(JavaNoVariantsDelegator.java:46)
 at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81)
 at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:135)
 at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:128)
 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:112)
 at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.java:787)
 at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$1000(CompletionProgressIndicator.java:89)
 at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:769)
 at com.intellij.codeInsight.completion.AsyncCompletion$1$1$1.run(CompletionThreading.java:93)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:878)
 at com.intellij.codeInsight.completion.AsyncCompletion$1$1.run(CompletionThreading.java:88)
 at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)
 at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:452)
 at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
 at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)
 at com.intellij.codeInsight.completion.AsyncCompletion$1.run(CompletionThreading.java:84)
 at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:405)
 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)
 at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)

Please sign in to leave a comment.