We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd86e68 commit e65fd77Copy full SHA for e65fd77
src/main/java/com/tencent/bk/devops/atom/AtomContext.java
@@ -89,7 +89,10 @@ private T readParam(Class<T> paramClazz) throws IOException {
89
String json =
90
FileUtils.readFileToString(new File(dataDir + "/" + inputFile), ATOM_FILE_ENCODING);
91
T param = JsonUtil.fromJson(json, paramClazz);
92
- String atomCode = param.getAtomCode();
+ String atomCode = null;
93
+ if (param != null) {
94
+ atomCode = param.getAtomCode();
95
+ }
96
if (atomCode == null || !atomCode.equals(System.getenv("BK_CI_ATOM_CODE"))) {
97
// 本地测试环境不调蓝盾接口设置插件敏感信息
98
return param;
0 commit comments