gitea/templates/repo/diff
zeripath 03ba12aabf
Prevent NPE on commenting on lines with invalidated comments () ()
* 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  by assuming that a comment without a Review is
non-pending.

Fix 

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

* Add hack around to show the broken comments

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
blob_excerpt.tmpl Fix and simplify some tmpl conditions ()
box.tmpl Prevent NPE on commenting on lines with invalidated comments () ()
comment_form.tmpl Fix comment box styling and cancelling () () () ()
comment_form_datahandler.tmpl Pull request review/approval and comment on code ()
comments.tmpl Fix to allow comment poster to edit or delete his own comments () ()
compare.tmpl Allow compare page to look up base, head, own-fork, forkbase-of-head ()
image_diff.tmpl Bugfix for image compare and minor improvements to image compare ()
new_comment.tmpl Pull request review/approval and comment on code ()
new_review.tmpl Fix submit review form ()
options_dropdown.tmpl Support view individual commit for wiki pages ()
section_unified.tmpl Prevent NPE on commenting on lines with invalidated comments () ()
whitespace_dropdown.tmpl Add whitespace handling to PR-comparsion ()