diff --git a/camel-agent/src/main/java/com/dianping/platform/slb/agent/task/processor/AbstractTransactionProcessor.java b/camel-agent/src/main/java/com/dianping/platform/slb/agent/task/processor/AbstractTransactionProcessor.java index 78df5f8..e6971d6 100644 --- a/camel-agent/src/main/java/com/dianping/platform/slb/agent/task/processor/AbstractTransactionProcessor.java +++ b/camel-agent/src/main/java/com/dianping/platform/slb/agent/task/processor/AbstractTransactionProcessor.java @@ -104,7 +104,7 @@ public abstract class AbstractTransactionProcessor implements TransactionProcess public boolean isTransactionProcessing(long transactionId) { Transaction currentTransaction = m_currentTransaction.get(); - if (currentTransaction.getTransactionID() == transactionId) { + if ((currentTransaction != null) && (currentTransaction.getTransactionID() == transactionId)) { return true; } return false;