github-code-scanning[bot] commented on code in PR #14956:
URL: 
https://github.com/apache/dolphinscheduler/pull/14956#discussion_r1334447713


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java:
##########
@@ -1520,6 +1525,16 @@
         Date now = new Date();
         List<TaskDefinitionLog> taskDefinitionLogList = new ArrayList<>();
         for (TaskDefinition taskDefinition : taskDefinitionList) {
+            if (TASK_TYPE_SUB_PROCESS.equals(taskDefinition.getTaskType())) {
+                String originTaskParams = taskDefinition.getTaskParams();
+                long originProcessDefinitionCode =
+                        
Long.parseLong(JSONUtils.getNodeString(originTaskParams, 
Constants.PROCESS_DEFINITION_CODE));

Review Comment:
   ## Missing catch of NumberFormatException
   
   Potential uncaught 'java.lang.NumberFormatException'.
   
   [Show more 
details](https://github.com/apache/dolphinscheduler/security/code-scanning/3482)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to