gitea/services/pull
zeripath 03ba12aabf
Prevent NPE on commenting on lines with invalidated comments (#12549) (#12550)
* Prevent NPE on commenting on lines with invalidated comments

Only check for a review if we are replying to a previous review.

Prevent the NPE in #12239 by assuming that a comment without a Review is
non-pending.

Fix #12239

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add hack around to show the broken comments

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-21 10:52:20 +03:00
..
check.go Only update merge_base in checker if not already merged (#10908) 2020-04-01 15:02:11 +03:00
check_test.go Only check for conflicts/merging if the PR has not been merged in the interim (#10132) 2020-02-10 01:09:31 +02:00
commit_status.go Fix bug on pull view when required status check no ci result (#10648) 2020-03-07 07:33:20 +00:00
lfs.go Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
main_test.go Move some pull request functions from models to services (#9266) 2019-12-06 21:44:10 -05:00
merge.go Prevent merge of outdated PRs on protected branches (#11012) 2020-04-16 22:00:36 -03:00
patch.go Generate Diff and Patch direct from Pull head (#10936) 2020-04-03 21:21:41 +08:00
pull.go Update CommitsAhead CommitsBehind on Pull BaseBranch Change too (#11912) (#11915) 2020-06-16 15:56:47 -04:00
pull_test.go Move PushToBaseRepo from models to services/pull (#9352) 2019-12-15 04:28:51 +01:00
review.go Prevent NPE on commenting on lines with invalidated comments (#12549) (#12550) 2020-08-21 10:52:20 +03:00
temp_repo.go Handle more pathological branch and tag names (#11843) (#11863) 2020-06-12 14:01:44 -04:00
update.go Check Push permissions on IsUserAllowedToUpdate (#11448) 2020-05-16 20:48:30 -04:00