zhuangchong opened a new issue #3745:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/3745


   **Describe the bug**
   
   ```
   switch (EnumUtils.getEnum(TaskType.class,taskExecutionContext.getTaskType()))
   ```
   When the task type does not exist in the enumeration class TaskType, 
EnumUtils.getEnum() returns null, and switch will report a null pointer 
exception
   
   **Expected behavior**
   Null processing of parameter values in switch
   
   **Which version of Dolphin Scheduler:**
    -[dev]
   
   ---
   
   **描述错误**
   ```
   switch (EnumUtils.getEnum(TaskType.class,taskExecutionContext.getTaskType()))
   ```
   当任务类型在枚举类中TaskType不存在时,EnumUtils.getEnum()返回null,switch 会报空指针异常
   
   **预期行为**
   switch 内参数值判空处理
   
   **哪个版本的Dolphin Scheduler:**
     -[dev]
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to