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.
forgejo/services
zeripath a351b22dc0
Prevent NPE in CommentMustAsDiff if no hunk header (#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>

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
..
archiver migrate from com.* to alternatives (#14103) 4 years ago
comments Enhance Ghost comment mitigation Settings (#14392) 3 years ago
externalaccount Allow externalID to be UUID (#8551) 5 years ago
gitdiff Prevent NPE in CommentMustAsDiff if no hunk header (#15199) 3 years ago
issue label and milestone webhooks on issue/pull creation (#14363) 3 years ago
mailer Repository transfer has to be confirmed, if user can not create repo for new owner (#14792) 3 years ago
mirror Create tag on ui (#13467) 3 years ago
pull IsUserAllowedToUpdate ignore igonre if user is nil (#14885) 3 years ago
release Implement delete release attachments and update release attachments' name (#14130) 3 years ago
repository Repository transfer has to be confirmed, if user can not create repo for new owner (#14792) 3 years ago
webhook Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
wiki migrate from com.* to alternatives (#14103) 4 years ago