You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/09/15 04:36:12 UTC

[GitHub] [incubator-dolphinscheduler] zhuangchong opened a new issue #3745: [Bug][server] server task type get NPE exception

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:
users@infra.apache.org



[GitHub] [incubator-dolphinscheduler] yangyichao-mango commented on issue #3745: [Bug][server] server get tasktype NPE exception

Posted by GitBox <gi...@apache.org>.
yangyichao-mango commented on issue #3745:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/3745#issuecomment-693168318


   +1


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-dolphinscheduler] zhuangchong closed issue #3745: [Bug][server] server get tasktype NPE exception

Posted by GitBox <gi...@apache.org>.
zhuangchong closed issue #3745:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/3745


   


----------------------------------------------------------------
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:
users@infra.apache.org