Commit cd1fd534 authored by hpi1's avatar hpi1

Check for null

Avoid dumping useless exception when initializatiion failed
parent 2a7b24f0
......@@ -104,7 +104,9 @@ public class BDJLoader {
protected static void shutdown() {
try {
queue.shutdown();
if (queue != null) {
queue.shutdown();
}
} catch (Throwable e) {
logger.error("shutdown() failed: " + e + "\n" + Logger.dumpStack(e));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment