Skip to content

ArtifactLocatorStrategy: NPE from null factory/resolver/localRepository #91

Description

@elharo

Bug #9

ArtifactLocatorStrategy.java lines 145-153

The constructor stores factory, resolver, and localRepository parameters without null validation. If any of them is null (e.g., from misconfiguration), calling factory.createArtifact(...) at lines 147/149 or resolver.resolve(...) at line 153 will throw a NullPointerException.

Fix: add null checks in the constructor with informative error messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions