Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent NPE on invalid diff #17197

Merged
merged 2 commits into from
Sep 30, 2021
Merged

Prevent NPE on invalid diff #17197

merged 2 commits into from
Sep 30, 2021

Commits on Sep 30, 2021

  1. Prevent NPE on invalid diff

    If ParseCompareInfo returns a nil compare info the defer function needs to ensure
    that it does not attempt to close the HeadGitRepo.
    
    Fix go-gitea#17193
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    d2f547a View commit details
    Browse the repository at this point in the history
  2. add TEST

    6543 committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    2fc02b2 View commit details
    Browse the repository at this point in the history