diff --git a/src/main/java/org/bdware/sc/ContractStatusRecorder.java b/src/main/java/org/bdware/sc/ContractStatusRecorder.java index 3a595f2..5f47f1c 100644 --- a/src/main/java/org/bdware/sc/ContractStatusRecorder.java +++ b/src/main/java/org/bdware/sc/ContractStatusRecorder.java @@ -229,7 +229,9 @@ public class ContractStatusRecorder extends StatusRecorder { ContractManager.instance.invokeContractSuicide(client); ContractManager.cPort.updateDb(client.port, false); } - meta.contractExecutor.close(); + if (null != meta.contractExecutor) { + meta.contractExecutor.close(); + } id2ContractClient.remove(meta.id); runningProcess.remove(meta); return "success";