mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-31 12:00:01 +02:00
Fix nil pointer panic when exec some gitea cli command (#28791)
panic:  After: 
This commit is contained in:
parent
5d3fdd1212
commit
c7e4629c02
3 changed files with 9 additions and 0 deletions
|
@ -30,5 +30,8 @@ func SendEmail(ctx context.Context, subject, message string, to []string) (strin
|
|||
})
|
||||
|
||||
resp, extra := requestJSONResp(req, &responseText{})
|
||||
if resp == nil {
|
||||
return "", extra
|
||||
}
|
||||
return resp.Text, extra
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue