Browse Source

修复崩溃

gitlink
Sydonian 2 years ago
parent
commit
21b1d670f8
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      client/internal/http/temp.go

+ 5
- 0
client/internal/http/temp.go View File

@@ -115,6 +115,11 @@ func (s *TempService) GetObjectDetail(ctx *gin.Context) {
ctx.JSON(http.StatusOK, Failed(errorcode.OperationFailed, "get object detail failed"))
return
}
if details == nil {
log.Warnf("object not found")
ctx.JSON(http.StatusOK, Failed(errorcode.OperationFailed, "object not found"))
return
}

loadedNodeIDs, err := s.svc.PackageSvc().GetLoadedNodes(1, details.Object.PackageID)
if err != nil {


Loading…
Cancel
Save