mirror of https://github.com/apache/maven.git
prevent possible NPE
This commit is contained in:
parent
176a85f43c
commit
6c3ec90f2c
|
@ -313,6 +313,12 @@ public class DefaultVersionResolver
|
|||
{
|
||||
Versioning versioning = null;
|
||||
|
||||
|
||||
if (metadata == null)
|
||||
{
|
||||
return new Versioning();
|
||||
}
|
||||
|
||||
SyncContext syncContext = syncContextFactory.newInstance( session, true );
|
||||
|
||||
try
|
||||
|
|
Loading…
Reference in New Issue