This commit is contained in:
liqiang-fit2cloud 2022-12-23 10:11:07 +08:00
commit a27af7135f
1 changed files with 5 additions and 3 deletions

View File

@ -67,9 +67,11 @@ public class SwaggerUrlImportJob extends MsScheduleJob {
if (CollectionUtils.isNotEmpty(arguments)) { if (CollectionUtils.isNotEmpty(arguments)) {
request.setArguments(arguments); request.setArguments(arguments);
} }
MsAuthManager msAuthManager = JSONUtil.parseObject(configObj.optString("authManager"), MsAuthManager.class); if (StringUtils.isNotBlank(configObj.optString("authManager"))) {
if (msAuthManager != null) { MsAuthManager msAuthManager = JSONUtil.parseObject(configObj.optString("authManager"), MsAuthManager.class);
request.setAuthManager(msAuthManager); if (msAuthManager != null) {
request.setAuthManager(msAuthManager);
}
} }
} }
} }