You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2021/11/08 18:58:54 UTC
[maven] 04/05: [MNG-7324] Allow more minimal config
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch MNG-7129_Modello
in repository https://gitbox.apache.org/repos/asf/maven.git
commit 896eeb9c6ae1e78e6bcc8bfdfe0c843e646e562f
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Nov 5 15:21:05 2021 +0100
[MNG-7324] Allow more minimal config
---
.../src/main/java/org/apache/maven/caching/xml/CacheConfigImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/maven-core/src/main/java/org/apache/maven/caching/xml/CacheConfigImpl.java b/maven-core/src/main/java/org/apache/maven/caching/xml/CacheConfigImpl.java
index 137bcc6..df8eb26 100644
--- a/maven-core/src/main/java/org/apache/maven/caching/xml/CacheConfigImpl.java
+++ b/maven-core/src/main/java/org/apache/maven/caching/xml/CacheConfigImpl.java
@@ -399,7 +399,7 @@ public class CacheConfigImpl implements CacheConfig
checkInitializedState();
final ProjectDiscoveryStrategy projectDiscoveryStrategy =
cacheConfig.getConfiguration().getProjectDiscoveryStrategy();
- if ( projectDiscoveryStrategy.getSpecificVersion() != null )
+ if ( projectDiscoveryStrategy != null && projectDiscoveryStrategy.getSpecificVersion() != null )
{
return new SentinelVersionStartegy( projectDiscoveryStrategy.getSpecificVersion() );
}