fix: SpotBugs扫描分析(一):潜在NPE修复

pull/66/head
xiaoxiamo 6 months ago
parent 780d769575
commit a50ac0e73e

@ -164,7 +164,8 @@ public class CronTaskServiceImpl implements CronTaskService {
}
} catch (Exception e) {
log.error("CronTaskService#getGroupId fail,e:{},param:{},response:{}", Throwables.getStackTraceAsString(e)
, JSON.toJSONString(params), JSON.toJSONString(response.body()));
, JSON.toJSONString(params),
response != null ? JSON.toJSONString(response.body()) : "");
}
invalidateCookie();
return BasicResultVO.fail(RespStatusEnum.SERVICE_ERROR, JSON.toJSONString(response.body()));

Loading…
Cancel
Save