Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] NPE WrongDataPathForFormElementsDiagnostic #1899

Closed
asosnoviy opened this issue Nov 2, 2021 · 0 comments · Fixed by #1900
Closed

[BUG] NPE WrongDataPathForFormElementsDiagnostic #1899

asosnoviy opened this issue Nov 2, 2021 · 0 comments · Fixed by #1900
Labels
component/diagnostics Доработка / создание диагностики type/bug Something isn't working

Comments

@asosnoviy
Copy link
Member

Диагностика

WrongDataPathForFormElementsDiagnostic

Версия

Описание ошибки диагностики

java.lang.NullPointerException: null
	at com.github._1c_syntax.bsl.languageserver.diagnostics.WrongDataPathForFormElementsDiagnostic.checkForm(WrongDataPathForFormElementsDiagnostic.java:103) ~[classes!/:develop-33901eb]
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[na:na]
	at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1675) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[na:na]
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[na:na]
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[na:na]
	at com.github._1c_syntax.bsl.languageserver.diagnostics.WrongDataPathForFormElementsDiagnostic.checkMdoObjectStream(WrongDataPathForFormElementsDiagnostic.java:98) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.diagnostics.WrongDataPathForFormElementsDiagnostic.checkAllFormsWithoutModules(WrongDataPathForFormElementsDiagnostic.java:88) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.diagnostics.WrongDataPathForFormElementsDiagnostic.checkCurrentModule(WrongDataPathForFormElementsDiagnostic.java:83) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.diagnostics.WrongDataPathForFormElementsDiagnostic.check(WrongDataPathForFormElementsDiagnostic.java:64) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.diagnostics.AbstractDiagnostic.getDiagnostics_aroundBody0(AbstractDiagnostic.java:44) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.diagnostics.AbstractDiagnostic$AjcClosure1.run(AbstractDiagnostic.java:1) ~[classes!/:develop-33901eb]
	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:167) ~[aspectjrt-1.9.7.jar!/:na]
	at com.github._1c_syntax.bsl.languageserver.aop.MeasuresAspect.measureBSLDiagnostic(MeasuresAspect.java:58) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.diagnostics.AbstractDiagnostic.getDiagnostics(AbstractDiagnostic.java:42) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.context.computer.DiagnosticComputer.lambda$compute$0(DiagnosticComputer.java:48) ~[classes!/:develop-33901eb]
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) ~[na:na]
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[na:na]
	at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:952) ~[na:na]
	at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:926) ~[na:na]
	at java.base/java.util.stream.AbstractTask.compute(AbstractTask.java:327) ~[na:na]
	at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736) ~[na:na]
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateParallel(ReduceOps.java:919) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233) ~[na:na]
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[na:na]
	at com.github._1c_syntax.bsl.languageserver.context.computer.DiagnosticComputer.compute_aroundBody0(DiagnosticComputer.java:62) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.context.computer.DiagnosticComputer$AjcClosure1.run(DiagnosticComputer.java:1) ~[classes!/:develop-33901eb]
	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:167) ~[aspectjrt-1.9.7.jar!/:na]
	at com.github._1c_syntax.bsl.languageserver.aop.MeasuresAspect.measureComputers(MeasuresAspect.java:77) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.context.computer.DiagnosticComputer.compute(DiagnosticComputer.java:43) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.context.DocumentContext.computeDiagnostics(DocumentContext.java:391) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.utils.Lazy.maybeCompute(Lazy.java:76) ~[utils-0.3.4.jar!/:na]
	at com.github._1c_syntax.utils.Lazy.getOrCompute(Lazy.java:53) ~[utils-0.3.4.jar!/:na]
	at com.github._1c_syntax.utils.Lazy.getOrCompute(Lazy.java:61) ~[utils-0.3.4.jar!/:na]
	at com.github._1c_syntax.bsl.languageserver.context.DocumentContext.getDiagnostics(DocumentContext.java:249) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.cli.AnalyzeCommand.getFileInfoFromFile(AnalyzeCommand.java:211) ~[classes!/:develop-33901eb]
	at com.github._1c_syntax.bsl.languageserver.cli.AnalyzeCommand.lambda$call$1(AnalyzeCommand.java:188) ~[classes!/:develop-33901eb]
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[na:na]
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[na:na]
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[na:na]
	at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:952) ~[na:na]
	at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:926) ~[na:na]
	at java.base/java.util.stream.AbstractTask.compute(AbstractTask.java:327) ~[na:na]
	at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[na:na]

Пример кода

Скриншоты

Дополнительная информация

@asosnoviy asosnoviy added type/bug Something isn't working component/diagnostics Доработка / создание диагностики labels Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/diagnostics Доработка / создание диагностики type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant