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

RevisionGridControl: prevent exception when switching repository #9708

Merged
merged 1 commit into from Nov 7, 2021

Conversation

pmiossec
Copy link
Member

@pmiossec pmiossec commented Nov 5, 2021

Fixes nothing, just improve UX in DEBUG inside Visual Studio

Proposed changes

  • Behavior is not changed, the exception is already try/catched
  • This check just prevent the exception to be raised which is really boring when debugging the application

Test methodology

  • In debug in VS, switch the opened repository

Test environment(s)

  • Git Extensions 33.33.33
  • Build e613257
  • Git 2.28.0.windows.1 (recommended: 2.33.0 or later)
  • Microsoft Windows NT 10.0.19042.0
  • .NET 5.0.11
  • DPI 192dpi (200% scaling)

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).

@ghost ghost assigned pmiossec Nov 5, 2021
Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+0

Comment on lines +582 to +586
if (index >= _gridView.Rows.Count)
{
return;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a comment describing a situation that leads to this path?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOne.

@RussKie RussKie added the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Nov 6, 2021
@ghost ghost removed the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Nov 7, 2021
@RussKie RussKie merged commit 2bde8f9 into gitextensions:master Nov 7, 2021
@ghost ghost added this to the vNext milestone Nov 7, 2021
@pmiossec pmiossec deleted the prevent_exception branch September 6, 2022 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants