samz406 commented on a change in pull request #1684: fix get tenantCode my NPE
URL:
https://github.com/apache/incubator-dolphinscheduler/pull/1684#discussion_r363013901
##########
File path:
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java
##########
@@ -234,6 +234,12 @@ public Result updateResource(User loginUser,
}
}
+ // query tenant by user id
+ String tenantCode = getTenantCode(resource.getUserId(),result);
+ if (StringUtils.isEmpty(tenantCode)){
Review comment:
add error log in getTenantCode method
----------------------------------------------------------------
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]
With regards,
Apache Git Services