commit | fabdfb2b082fae474993806b7099fa73092e0001 | [log] [tgz] |
---|---|---|
author | Till Westmann <westmann@gmail.com> | Thu Mar 27 09:38:15 2014 -0700 |
committer | Till Westmann <westmann@gmail.com> | Thu Mar 27 09:38:15 2014 -0700 |
tree | f2a512b2bf7c9caf37a5d2cdc21655e4842b943f | |
parent | 2fb2937d5e5e5a25e0a4c755daee9dc7735216b8 [diff] |
only stop controllers that have been created
diff --git a/asterix-app/src/main/java/edu/uci/ics/asterix/api/common/AsterixHyracksIntegrationUtil.java b/asterix-app/src/main/java/edu/uci/ics/asterix/api/common/AsterixHyracksIntegrationUtil.java index 8b64b18..8e2a695 100644 --- a/asterix-app/src/main/java/edu/uci/ics/asterix/api/common/AsterixHyracksIntegrationUtil.java +++ b/asterix-app/src/main/java/edu/uci/ics/asterix/api/common/AsterixHyracksIntegrationUtil.java
@@ -96,9 +96,9 @@ } public static void deinit() throws Exception { - nc2.stop(); - nc1.stop(); - cc.stop(); + if (nc2 != null) nc2.stop(); + if (nc1 != null) nc1.stop(); + if (cc != null) cc.stop(); } public static void runJob(JobSpecification spec) throws Exception {