opwvhk / avro-schema-support

Extend IntelliJ, PyCharm and other JetBrains IDEs to more easily work with Avro schemata and protocols in both IDL and JSON format.
https://plugins.jetbrains.com/plugin/15728-avro-schema-support
MIT License
19 stars 2 forks source link

Crash Report: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'schemaObject' of opwvhk/intellij/avro_idl/json_schema/AvroJsonSchemaPsiWalkerFactory.create must not be null #171

Closed avro-support-error-reporter[bot] closed 3 months ago

avro-support-error-reporter[bot] commented 3 months ago

Crash Report

What happened

(The user did not submit additional information)

Context information

Exception

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'schemaObject' of opwvhk/intellij/avro_idl/json_schema/AvroJsonSchemaPsiWalkerFactory.create must not be null
    at java.base/jdk.internal.reflect.GeneratedConstructorAccessor692.newInstance(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
    at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:562)
    at java.base/java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:591)
    at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:689)
    at com.intellij.concurrency.JobLauncherImpl.procInOrderAsync(JobLauncherImpl.java:554)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$12(InspectionRunner.java:202)
    at com.intellij.codeInspection.InspectionEngine.withSession(InspectionEngine.java:205)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.inspect(InspectionRunner.java:162)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:140)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$runMainPasses$5(DaemonCodeAnalyzerImpl.java:435)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:228)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:221)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:857)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:66)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$runMainPasses$6(DaemonCodeAnalyzerImpl.java:434)
    at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:139)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:279)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:965)
    at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:96)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
    at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:108)
    at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:89)
    at com.intellij.concurrency.JobLauncherImpl.invokeConcurrentlyUnderProgress(JobLauncherImpl.java:66)
    at com.intellij.concurrency.JobLauncher.invokeConcurrentlyUnderProgress(JobLauncher.java:52)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$runMainPasses$7(DaemonCodeAnalyzerImpl.java:434)
    at com.intellij.openapi.project.DumbService.runReadActionInSmartMode$lambda$0(DumbService.kt:83)
    at com.intellij.openapi.project.DumbService.runReadActionInSmartMode$lambda$2(DumbService.kt:135)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:264)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:221)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:857)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:66)
    at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.kt:128)
    at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.kt:83)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.runMainPasses(DaemonCodeAnalyzerImpl.java:430)
    at com.intellij.codeInsight.daemon.impl.MainPassesRunner.lambda$runMainPasses$11(MainPassesRunner.java:203)
    at com.intellij.codeInspection.ex.InspectionProfileWrapper.runWithCustomInspectionWrapper(InspectionProfileWrapper.java:90)
    at com.intellij.codeInsight.daemon.impl.MainPassesRunner.runMainPasses(MainPassesRunner.java:202)
    at com.intellij.codeInsight.daemon.impl.MainPassesRunner.lambda$runMainPasses$8(MainPassesRunner.java:179)
    at com.intellij.codeInsight.daemon.impl.HighlightingSessionImpl.runInsideHighlightingSession(HighlightingSessionImpl.java:170)
    at com.intellij.codeInsight.daemon.impl.MainPassesRunner.lambda$runMainPasses$9(MainPassesRunner.java:177)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:217)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202)
    at com.intellij.codeInsight.daemon.impl.MainPassesRunner.runMainPasses(MainPassesRunner.java:176)
    at com.intellij.codeInsight.daemon.impl.MainPassesRunner.lambda$runMainPasses$3(MainPassesRunner.java:144)
    at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:139)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
    at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:108)
    at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:89)
    at com.intellij.concurrency.JobLauncherImpl.invokeConcurrentlyUnderProgress(JobLauncherImpl.java:66)
    at com.intellij.concurrency.JobLauncher.invokeConcurrentlyUnderProgress(JobLauncher.java:52)
    at com.intellij.codeInsight.daemon.impl.MainPassesRunner.runMainPasses(MainPassesRunner.java:140)
    at com.intellij.codeInsight.daemon.impl.MainPassesRunner.runMainPasses(MainPassesRunner.java:95)
    at com.intellij.openapi.vcs.impl.CodeSmellDetectorImpl.findCodeSmells(CodeSmellDetectorImpl.java:118)
    at com.intellij.openapi.vcs.checkin.CodeAnalysisBeforeCheckinHandler.findCodeSmells(CodeAnalysisBeforeCheckinHandler.kt:215)
    at com.intellij.openapi.vcs.checkin.CodeAnalysisBeforeCheckinHandler.access$findCodeSmells(CodeAnalysisBeforeCheckinHandler.kt:97)
    at com.intellij.openapi.vcs.checkin.CodeAnalysisBeforeCheckinHandler$runCheck$codeSmells$1$1$1$1.invoke(CodeAnalysisBeforeCheckinHandler.kt:124)
    at com.intellij.openapi.vcs.checkin.CodeAnalysisBeforeCheckinHandler$runCheck$codeSmells$1$1$1$1.invoke(CodeAnalysisBeforeCheckinHandler.kt:122)
    at com.intellij.openapi.progress.CoroutinesKt.jobToIndicator$lambda$2(coroutines.kt:445)
    at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:96)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:217)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202)
    at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:96)
    at com.intellij.openapi.progress.CoroutinesKt.jobToIndicator(coroutines.kt:433)
    at com.intellij.openapi.vcs.checkin.CodeAnalysisBeforeCheckinHandler$runCheck$codeSmells$1$1.invokeSuspend(CodeAnalysisBeforeCheckinHandler.kt:122)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
Caused by: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'schemaObject' of opwvhk/intellij/avro_idl/json_schema/AvroJsonSchemaPsiWalkerFactory.create must not be null
    at opwvhk.intellij.avro_idl.json_schema.AvroJsonSchemaPsiWalkerFactory.$$$reportNull$$$0(AvroJsonSchemaPsiWalkerFactory.java)
    at opwvhk.intellij.avro_idl.json_schema.AvroJsonSchemaPsiWalkerFactory.create(AvroJsonSchemaPsiWalkerFactory.java)
    at com.jetbrains.jsonSchema.extension.JsonLikePsiWalker.lambda$getWalker$1(JsonLikePsiWalker.java:90)
    at java.base/java.util.Optional.map(Optional.java:260)
    at com.jetbrains.jsonSchema.extension.JsonLikePsiWalker.getWalker(JsonLikePsiWalker.java:90)
    at com.jetbrains.jsonSchema.extension.JsonLikePsiWalker.getWalker(JsonLikePsiWalker.java:81)
    at com.jetbrains.jsonSchema.impl.tree.IfThenElseBranchOperation.getContainingObjectAdapterOrSelf(IfThenElseBranchOperation.kt:71)
    at com.jetbrains.jsonSchema.impl.tree.IfThenElseBranchOperation.computeEffectiveIfThenElseBranches(IfThenElseBranchOperation.kt:40)
    at com.jetbrains.jsonSchema.impl.tree.IfThenElseBranchOperation.map(IfThenElseBranchOperation.kt:15)
    at com.jetbrains.jsonSchema.impl.tree.Operation.doMap(Operation.java:40)
    at com.jetbrains.jsonSchema.impl.tree.Operation.doMap(Operation.java:43)
    at com.jetbrains.jsonSchema.impl.tree.Operation.doMap(Operation.java:43)
    at com.jetbrains.jsonSchema.impl.tree.Operation.doMap(Operation.java:43)
    at com.jetbrains.jsonSchema.impl.tree.Operation.doMap(Operation.java:43)
    at com.jetbrains.jsonSchema.impl.tree.Operation.doMap(Operation.java:43)
    at com.jetbrains.jsonSchema.impl.JsonSchemaVariantsTreeBuilder.getOperation(JsonSchemaVariantsTreeBuilder.java:105)
    at com.jetbrains.jsonSchema.impl.JsonSchemaVariantsTreeBuilder.expandChildSchema(JsonSchemaVariantsTreeBuilder.java:94)
    at com.jetbrains.jsonSchema.impl.JsonSchemaVariantsTreeBuilder.buildTree(JsonSchemaVariantsTreeBuilder.java:35)
    at com.jetbrains.jsonSchema.impl.JsonSchemaResolver.detailedResolve(JsonSchemaResolver.java:70)
    at com.jetbrains.jsonSchema.impl.JsonSchemaResolver.resolve(JsonSchemaResolver.java:75)
    at com.intellij.json.JsonSchemaSpellcheckerClient.matchesNameFromSchema(JsonSchemaSpellcheckerClient.java:53)
    at com.intellij.json.JsonSpellcheckerStrategy.getTokenizer(JsonSpellcheckerStrategy.java:48)
    at com.intellij.spellchecker.tokenizer.SpellcheckingStrategy.getTokenizer(SpellcheckingStrategy.java:55)
    at com.intellij.spellchecker.inspections.SpellCheckingInspection.tokenize(SpellCheckingInspection.java:136)
    at com.intellij.spellchecker.inspections.SpellCheckingInspection.tokenize(SpellCheckingInspection.java:132)
    at com.intellij.spellchecker.inspections.SpellCheckingInspection$1.visitElement(SpellCheckingInspection.java:102)
    at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:270)
    at com.intellij.json.psi.impl.JsonLiteralImpl.accept(JsonLiteralImpl.java:26)
    at com.intellij.json.psi.impl.JsonStringLiteralImpl.accept(JsonStringLiteralImpl.java:29)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner$InspectionProblemHolder.visitElement(InspectionRunner.java:598)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processContext$20(InspectionRunner.java:415)
    at com.intellij.codeInsight.daemon.impl.InspectionVisitorOptimizer.acceptElements(InspectionVisitorOptimizer.java:197)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.processContext(InspectionRunner.java:413)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$7(InspectionRunner.java:192)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:291)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:965)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$executeInImpatientReadAction$17(InspectionRunner.java:394)
    at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:158)
    at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:150)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$executeInImpatientReadAction$18(InspectionRunner.java:385)
    at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:129)
    at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:118)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.executeInImpatientReadAction(InspectionRunner.java:385)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$8(InspectionRunner.java:191)
    at com.intellij.concurrency.JobLauncherImpl$2MyProcessQueueTask.lambda$call$0(JobLauncherImpl.java:494)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
    at com.intellij.concurrency.JobLauncherImpl$2MyProcessQueueTask.call(JobLauncherImpl.java:483)
    at com.intellij.concurrency.JobLauncherImpl$2MyProcessQueueTask.call(JobLauncherImpl.java:471)
    at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1428)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
opwvhk commented 3 months ago

Duplicate of #127