You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sqoop.apache.org by ja...@apache.org on 2015/11/04 16:58:35 UTC

sqoop git commit: SQOOP-2656: Sqoop2: NPE will happen in connector-loading-tests when do the slow integration test

Repository: sqoop
Updated Branches:
  refs/heads/sqoop2 492459615 -> 84590aa4a


SQOOP-2656: Sqoop2: NPE will happen in connector-loading-tests when do the slow integration test

(Colin Ma via Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/84590aa4
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/84590aa4
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/84590aa4

Branch: refs/heads/sqoop2
Commit: 84590aa4abe3aa5647b3087a4d0d896d38a3524c
Parents: 4924596
Author: Jarek Jarcec Cecho <ja...@apache.org>
Authored: Wed Nov 4 07:58:01 2015 -0800
Committer: Jarek Jarcec Cecho <ja...@apache.org>
Committed: Wed Nov 4 07:58:01 2015 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/sqoop/test/testcases/JettyTestCase.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/84590aa4/test/src/main/java/org/apache/sqoop/test/testcases/JettyTestCase.java
----------------------------------------------------------------------
diff --git a/test/src/main/java/org/apache/sqoop/test/testcases/JettyTestCase.java b/test/src/main/java/org/apache/sqoop/test/testcases/JettyTestCase.java
index d967aaa..2349f1c 100644
--- a/test/src/main/java/org/apache/sqoop/test/testcases/JettyTestCase.java
+++ b/test/src/main/java/org/apache/sqoop/test/testcases/JettyTestCase.java
@@ -140,7 +140,9 @@ abstract public class JettyTestCase implements ITest {
   }
 
   protected void stopSqoop() throws Exception {
-    cluster.stop();
+    if (cluster != null) {
+      cluster.stop();
+    }
   }
 
   protected void stopHadoop() throws Exception {