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 {