xmvn/0001-Fix-NPE-in-DefaultResolver.patch

26 lines
1020 B
Diff
Raw Normal View History

2015-06-30 18:33:33 +00:00
From 47e01b8dc3b41ef1e56de14d15672aaab43364c9 Mon Sep 17 00:00:00 2001
2015-05-11 14:08:22 +00:00
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Mon, 11 May 2015 15:52:58 +0200
2015-06-30 18:33:33 +00:00
Subject: [PATCH 1/3] Fix NPE in DefaultResolver
2015-05-11 14:08:22 +00:00
---
.../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