From 84590aa4abe3aa5647b3087a4d0d896d38a3524c Mon Sep 17 00:00:00 2001 From: Jarek Jarcec Cecho Date: Wed, 4 Nov 2015 07:58:01 -0800 Subject: [PATCH] SQOOP-2656: Sqoop2: NPE will happen in connector-loading-tests when do the slow integration test (Colin Ma via Jarek Jarcec Cecho) --- .../java/org/apache/sqoop/test/testcases/JettyTestCase.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 d967aaad..2349f1cd 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 @@ protected void startSqoop() throws Exception { } protected void stopSqoop() throws Exception { - cluster.stop(); + if (cluster != null) { + cluster.stop(); + } } protected void stopHadoop() throws Exception {