[Fix-14895][API] Keep printing null if task log file not exist (#14912)

This commit is contained in:
Aaron Wang 2023-09-19 18:29:33 +08:00 committed by GitHub
parent 9083f9d0e0
commit 2f2884fd6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -261,7 +261,9 @@ public class LoggerServiceImpl extends BaseServiceImpl implements LoggerService
log.error("Error while getting log from remote target", e);
}
}
sb.append(logContent);
if (logContent != null) {
sb.append(logContent);
}
return sb.toString();
}