Skip to content

Commit

Permalink
Merge pull request #2290 from actiontech/fix-issue2268
Browse files Browse the repository at this point in the history
fix nil point
  • Loading branch information
ColdWaterLW authored Mar 1, 2024
2 parents cd231d7 + 570b05c commit 6014a77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sqle/notification/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ type AuditPlanPayload struct {
}

func auditPlanSendRequest(auditPlan *model.AuditPlan, report *model.AuditPlanReportV2, config AuditPlanNotifyConfig) (err error) {
s := *config.SQLEUrl
var s string
if config.SQLEUrl != nil {
s = *config.SQLEUrl
}

projectName, err := getProjectNameByID(string(auditPlan.ProjectId))
if err != nil {
Expand Down

0 comments on commit 6014a77

Please sign in to comment.