Skip to content

NullPointer exception in eco code java Sonar plugin #69

Open
@rrousset-michelin

Description

@rrousset-michelin

While launching java eco code plugin with maven sonar goal, i obtained the following error :

[ERROR] 07:05:13.649 Unable to run check class fr.greencodeinitiative.java.checks.FreeResourcesOfAutoCloseableInterface - EC79 on file 's4c_batch/src/main/java/com/michelin/s4c/service/DefaultStockReportGenerationService.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: Cannot invoke "java.util.List.add(Object)" because the return value of "java.util.Deque.peek()" is null

It is with the plugin version 1.6.2

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions