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_test.go
check.go
commit_status.go
lfs.go
main_test.go
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_test.go
pull.go Update CommitsAhead CommitsBehind on Pull BaseBranch Change too (#11912) (#11915) 2020-06-16 15:56:47 -04: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