Skip to content

Commit

Permalink
[Bug][Api] fix NullPointException when deleting a workflow instance (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
CommandCV committed Jan 16, 2024
1 parent 0b873e6 commit 2b0834c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,12 @@ public void deleteByWorkflowInstanceId(Integer workflowInstanceId) {
return;
}
for (TaskInstance taskInstance : needToDeleteTaskInstances) {
ILogService iLogService =
SingletonJdkDynamicRpcClientProxyFactory.getProxyClient(taskInstance.getHost(), ILogService.class);
iLogService.removeTaskInstanceLog(taskInstance.getLogPath());
if (StringUtils.isNotBlank(taskInstance.getLogPath())) {
ILogService iLogService =
SingletonJdkDynamicRpcClientProxyFactory.getProxyClient(taskInstance.getHost(),
ILogService.class);
iLogService.removeTaskInstanceLog(taskInstance.getLogPath());
}
}

dqExecuteResultDao.deleteByWorkflowInstanceId(workflowInstanceId);
Expand Down

0 comments on commit 2b0834c

Please sign in to comment.