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

Fix for MapTool registry errors in 1.13.0 #4036

Merged
merged 1 commit into from
May 8, 2023

Conversation

cwisniew
Copy link
Member

@cwisniew cwisniew commented May 6, 2023

Identify the Bug or Feature request

Fixes #4035 4035

Description of the Change

The code had been retrieving the body of the response first to check if it was empty and, if not, later on retrieving it again to parse it. This was working in previous versions of okhttp3 but no longer works, and an IllegalStateException is thrown. I have modified the code to retrieve the body only once and use that result for the empty check and parsing.

I have also captured and dealt with all exceptions by displaying an error message dialog and returning from the method correctly to handle it more gracefully (currently, you can end up in a state when you can not continue and have to close MapTool).

Possible Drawbacks

There should be none.

Documentation Notes

Fix problems that can arise when fetching information from the MapTool server registry.

Release Notes

  • Fix problems when fetching information from the MapTool server registry.

This change is Reviewable

@cwisniew cwisniew added the bug label May 6, 2023
@cwisniew cwisniew requested a review from kwvanderlinde May 6, 2023 09:53
@cwisniew cwisniew merged commit 00bdcbc into RPTools:release-1.13 May 8, 2023
@cwisniew cwisniew deleted the fix-maptool-reg-errors branch May 8, 2023 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants