xmvn/0001-Fix-NPE-in-DefaultResolver.patch
2015-05-11 16:08:22 +02:00

26 lines
1020 B
Diff

From 299ce2028ebaaab177290b569498ce36104bf762 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Mon, 11 May 2015 15:52:58 +0200
Subject: [PATCH 1/2] Fix NPE in DefaultResolver
---
.../main/java/org/fedoraproject/xmvn/resolver/impl/DefaultResolver.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xmvn-core/src/main/java/org/fedoraproject/xmvn/resolver/impl/DefaultResolver.java b/xmvn-core/src/main/java/org/fedoraproject/xmvn/resolver/impl/DefaultResolver.java
index fdf79cf..6c0caf6 100644
--- a/xmvn-core/src/main/java/org/fedoraproject/xmvn/resolver/impl/DefaultResolver.java
+++ b/xmvn-core/src/main/java/org/fedoraproject/xmvn/resolver/impl/DefaultResolver.java
@@ -144,7 +144,7 @@ public class DefaultResolver
catch ( IOException e )
{
logger.warn( "Failed to generate effective POM", e );
- metadata = null;
+ return new DefaultResolutionResult();
}
}
--
2.1.0