You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services
zeripath 1062931cf1
Prevent NPE in CommentMustAsDiff if no hunk header (#1519) (#15201)
Backport #15199

I do not understand how this can happen or why.

There is an apparent possibility for a comment.Patch to be missing a hunk header
- this should not happen and do not understand how. But it appears to happen on
1.13 at least in some case.

This PR will simply add a new section if the cursection is empty
thus preventing the NPE.

Fix #15198

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
comments Send notifications for mentions in pulls, issues, (code-)comments (#14218) (#14221) 3 years ago
externalaccount Allow externalID to be UUID (#8551) 5 years ago
gitdiff Prevent NPE in CommentMustAsDiff if no hunk header (#1519) (#15201) 3 years ago
issue Send notifications for mentions in pulls, issues, (code-)comments (#14218) (#14221) 3 years ago
mailer fix mailIssueCommentBatch for pull request (#14252) (#14296) 3 years ago
mirror Fix branch/tag notifications in mirror sync (#13855) (#13862) 4 years ago
pull IsUserAllowedToUpdate should igonre if user is nil (#14886) 3 years ago
release Send webhook when tag is removed via Web UI (#14015) (#14019) 4 years ago
repository Re-enable transfer repo back from org to user account (#14807) 3 years ago
wiki Enforce setting HEAD in wiki to master (#13950) (#13961) 4 years ago