Skip to content

Bug: getting location on Maven 3 model explodes #11127

@cstamas

Description

@cstamas

Affected version

master

Bug description

Model location explodes, doing this on Maven 3 (in Maven 3 plugin) d.getLocation(null) causes that below.

Caused by: java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "pk" is null
    at java.util.ImmutableCollections$MapN.probe(ImmutableCollections.java:1328)
    at java.util.ImmutableCollections$MapN.get(ImmutableCollections.java:1242)
    at org.apache.maven.api.model.Dependency.getLocation(Dependency.java:244)
    at org.apache.maven.model.Dependency.getLocation(Dependency.java:178)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions