-
Notifications
You must be signed in to change notification settings - Fork 621
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
Fixing potential null values in git patch processing #315
Conversation
PR Analysis
PR Feedback
How to use
|
/describe |
/review --pr_reviewer.extra_instructions="avoid suggestions better handling exceptions" |
PR Analysis
PR Feedback
How to use
|
Fixing potential null values in git patch processing
PR Type:
Bug fix
PR Description:
This PR addresses potential issues in the git patch processing code where match groups could be null. The changes ensure that any null values are replaced with 0 to prevent errors during the mapping to integers.
PR Main Files Walkthrough:
pr_agent/algo/git_patch_processing.py
: Added null checks for match group values in the extend_patch and convert_to_hunks_with_lines_numbers functions. If any value is null, it is replaced with 0 before mapping to integers.