Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gradle-plugin): Do not fail with NPE when dependency POMs are mis…
…sing Sometimes, POM cannot be resolved by ORT for one reason or another. When this happens, the analysis finishes early, omitting dependencies that have POMs but were unlucky to be listed after the POMless one. The fix itself is simple: instead of requiring a non-null value in POMs map (through `getValue`), add a warning and leave the fields empty when the returned POM is null. For example, ORT fails scanning [1] and [2] without the patch due to Gradle IntelliJ Plugin [3] injecting dependencies without POMs. [1] https://github.com/JetBrains/Grammar-Kit [2] https://github.com/JetBrains/ideavim [3] https://github.com/JetBrains/intellij-platform-gradle-plugin Signed-off-by: Igor Brovtsin <[email protected]>
- Loading branch information