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.
Bug #9
ArtifactLocatorStrategy.javalines 145-153The constructor stores
factory,resolver, andlocalRepositoryparameters without null validation. If any of them isnull(e.g., from misconfiguration), callingfactory.createArtifact(...)at lines 147/149 orresolver.resolve(...)at line 153 will throw aNullPointerException.Fix: add null checks in the constructor with informative error messages.