SERXIONE-8115: Fix exception handling in DisplaySettings::Request() by reordering function calls#6426
Open
Copilot wants to merge 4 commits intorelease/8.2_p1vfrom
Open
SERXIONE-8115: Fix exception handling in DisplaySettings::Request() by reordering function calls#6426Copilot wants to merge 4 commits intorelease/8.2_p1vfrom
Copilot wants to merge 4 commits intorelease/8.2_p1vfrom
Conversation
…ceptions properly Co-authored-by: goruklu <143648+goruklu@users.noreply.github.com>
…nction calls Co-authored-by: goruklu <143648+goruklu@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix call order in DisplaySettings::Request function
Fix exception handling in DisplaySettings::Request() by reordering function calls
Oct 31, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a potential issue in the DisplaySettings module where an exception in setAllmEnabled() would prevent the execution of setAVIContentType() and setAVIScanInformation(). By reordering these function calls, the critical AVI configuration methods are guaranteed to execute before the potentially failing setAllmEnabled() call.
Key Changes:
- Moved
setAllmEnabled()call to execute after the AVI-related function calls in the game mode state handling logic
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
goruklu
approved these changes
Oct 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
DisplaySettings::Request(), ifsetAllmEnabled()throws an exception,setAVIContentType()andsetAVIScanInformation()are never called due to incorrect ordering.Changes
setAllmEnabled()call to execute aftersetAVIContentType()andsetAVIScanInformation()in theRequest()methodBefore:
After:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.