fix(测试跟踪): 保存TAPD缺陷报错

--bug=1018057 --user=陈建星 【测试跟踪】缺陷管理-复制缺陷-保存报500 https://www.tapd.cn/55049933/s/1262408
This commit is contained in:
chenjianxing 2022-10-15 13:29:33 +08:00 committed by jianxing
parent 9c8008d0b3
commit 50d91cf7c4
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class TapdPlatform extends AbstractIssuePlatform {
List<String>tapdUsers = new ArrayList<>(tapdIssues.size());
for (Object tapdIssue : tapdIssues) {
Map bug = (Map) ((Map) tapdIssue).get("Bug");
String currentOwner = bug.get("current_owner").toString();
String currentOwner = Optional.ofNullable(bug.get("current_owner")).orElse("").toString();
tapdUsers.add(currentOwner);
}
return tapdUsers;