作者 tangxvhui

修正空指针异常

@@ -391,7 +391,7 @@ func (srv *SummaryEvaluationService) GetEvaluationSelfByCycle(param *command.Que @@ -391,7 +391,7 @@ func (srv *SummaryEvaluationService) GetEvaluationSelfByCycle(param *command.Que
391 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) 391 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
392 } 392 }
393 if len(evaluationList) == 0 { 393 if len(evaluationList) == 0 {
394 - return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) 394 + return &adapter.EvaluationInfoSelfAdapter{}, nil
395 } 395 }
396 evaluationData := evaluationList[0] 396 evaluationData := evaluationList[0]
397 if evaluationData.CompanyId != param.CompanyId { 397 if evaluationData.CompanyId != param.CompanyId {