diff --git a/public/home/home.js b/public/home/home.js index 8f7d6a626..78b9d517c 100644 --- a/public/home/home.js +++ b/public/home/home.js @@ -94,10 +94,12 @@ socket.onmessage = function (e) { var currentTime = new Date().getTime(); for(var i = 0; i < messageQueue.length; i++){ var record = messageQueue[i]; - - var recordPrefix = getMsg(record); var actionName = getAction(record.OpType,isZh); - + if(record.ActUser == null){ + console.log("receive action type=" + record.OpType + " name=" + actionName + " but user is null."); + continue; + } + var recordPrefix = getMsg(record); if(record.OpType == "6" || record.OpType == "10" || record.OpType == "12" || record.OpType == "13"){ html += recordPrefix + actionName; html += " " + getIssueText(record) + "" @@ -170,9 +172,15 @@ function getTaskLink(record){ function getMsg(record){ var html =""; html += "