diff --git a/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java b/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java index 759d90ec82..0b56970034 100644 --- a/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java +++ b/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java @@ -313,6 +313,12 @@ public class DefaultVersionResolver { Versioning versioning = null; + + if (metadata == null) + { + return new Versioning(); + } + SyncContext syncContext = syncContextFactory.newInstance( session, true ); try