1C-Company / v8-code-style

Расширение для 1C:EDT, которое помогает разрабатывать конфигурации/приложения по стандартам 1С для платформы "1С:Предприятие 8".
Eclipse Public License 2.0
175 stars 53 forks source link

G5V8DT-23514 Ошибка при попытке вызвать контекстную подсказку в bsl редакторе #1320

Closed MaksimDzyuba closed 1 year ago

MaksimDzyuba commented 1 year ago

Что сделано

Исправил возможное npe, если модель в модуле не консистентна java.lang.NullPointerException at com.e1c.v8codestyle.bsl.check.ModuleUnusedMethodCheck.isExcludeName(ModuleUnusedMethodCheck.java:138) at com.e1c.v8codestyle.bsl.check.ModuleUnusedMethodCheck.lambda$0(ModuleUnusedMethodCheck.java:106) at java.base/java.util.function.Predicate.lambda$and$0(Predicate.java:69) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176) at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) at com.e1c.v8codestyle.bsl.check.ModuleUnusedMethodCheck.check(ModuleUnusedMethodCheck.java:120) at com.e1c.g5.v8.dt.check.components.BasicCheck.check(BasicCheck.java:76) at com.e1c.g5.v8.dt.internal.check.CheckExecutor.runLanguageChecks(CheckExecutor.java:722) at com.e1c.g5.v8.dt.internal.check.CheckExecutor.validateLanguage(CheckExecutor.java:212) at com.e1c.g5.v8.dt.internal.check.bsl.BslValidationContributor.validate(BslValidationContributor.java:176) at com._1c.g5.v8.dt.bsl.validation.IBslValidationContributor$pbryglu.validate(Unknown Source) at com._1c.g5.v8.dt.bsl.validation.ExternalValidatorServiceProvider.validate(ExternalValidatorServiceProvider.java:78)

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

90.0% 90.0% Coverage
0.0% 0.0% Duplication