[ 
https://issues.apache.org/jira/browse/KYLIN-4357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030473#comment-17030473
 ] 

ASF GitHub Bot commented on KYLIN-4357:
---------------------------------------

nichunen commented on pull request #1073: KYLIN-4357: throw Exception when 
cannot find job
URL: https://github.com/apache/kylin/pull/1073
 
 
   
 
----------------------------------------------------------------
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:
[email protected]


> NPE in drop/cancel unexist job
> ------------------------------
>
>                 Key: KYLIN-4357
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4357
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: ZhouKang
>            Assignee: ZhouKang
>            Priority: Major
>
> REST apiĀ 
>  jobs/\{uuid}/cancel
> jobs/\{uuid}/drop
> if uuid is not exist, NPE happened.
> {code:java}
> // code placeholder
> Caused by: java.lang.NullPointerException
>  at 
> org.apache.kylin.rest.util.AclEvaluate.getProjectByJob(AclEvaluate.java:51)
>  at 
> org.apache.kylin.rest.util.AclEvaluate.checkProjectOperationPermission(AclEvaluate.java:107)
>  at org.apache.kylin.rest.service.JobService.cancelJob(JobService.java:610)
>  at 
> org.apache.kylin.rest.controller.JobController.cancel(JobController.java:204)
>  ... 75 more\n
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to