diff options
author | zeripath <art27@cantab.net> | 2020-08-21 08:52:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-21 10:52:20 +0300 |
commit | 03ba12aabf95ced8398c7859deff76780a4577cd (patch) | |
tree | ffa081b5aec4e160279f81e2284588201cdee19e /vendor/github.com/sergi/go-diff/diffmatchpatch/diff.go | |
parent | 24ed1b5feb8c7417f3780e43ef0fe8b0c5517c27 (diff) | |
download | gitea-03ba12aabf95ced8398c7859deff76780a4577cd.tar.gz gitea-03ba12aabf95ced8398c7859deff76780a4577cd.zip |
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>
Diffstat (limited to 'vendor/github.com/sergi/go-diff/diffmatchpatch/diff.go')
0 files changed, 0 insertions, 0 deletions