fix: 修复ssh插件报length空指针的bug

- 在数据加密判断中增加非空检查,避免对未定义或空值进行加密判断- 提高了代码的健壮性和安全性
pull/373/head
xiaojunnuo 2025-04-12 22:04:14 +08:00
parent 835fcfa4ea
commit 9c4cbe17a2
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin {
// @ts-ignore
const input = define.input;
for (const key in input) {
if (input[key].encrypt) {
if (input[key].encrypt && res[key] != null) {
// @ts-ignore
this.logger.addSecret(res[key]);
}