Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【1.1.16】Empty pointer exception prompt when optimizing query task logs #298

Merged
merged 5 commits into from
Oct 7, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,14 @@ public Message openEngineLog(HttpServletRequest req, @RequestBody JsonNode jsonN

private Message executeECMOperation(
EMNode ecmNode, String engineInstance, ECMOperateRequest ecmOperateRequest) {
if (Objects.isNull(ecmNode)) {
return Message.error(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use MessageFormat.format

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"ECM node :["
+ engineInstance
+ "] does not exist, Unable to open engine log(ECM节点:["
+ engineInstance
+ "] 异常,无法打开日志,可能是该节点服务重启或则服务异常导致)");
}
String operationName = OperateRequest$.MODULE$.getOperationName(ecmOperateRequest.parameters());
String userName = ecmOperateRequest.user();
if (ArrayUtils.contains(adminOperations, operationName) && Configuration.isNotAdmin(userName)) {
Expand Down