Skip to content

Fix for NullReferenceException thrown when server is unavailable#11

Open
dshafer wants to merge 1 commit into
developfrom
bugfix/NullReferenceException-if-no-server-response
Open

Fix for NullReferenceException thrown when server is unavailable#11
dshafer wants to merge 1 commit into
developfrom
bugfix/NullReferenceException-if-no-server-response

Conversation

@dshafer

@dshafer dshafer commented Jan 12, 2015

Copy link
Copy Markdown
Member

WebException.response is null if the server is unreachable. This PR updates the ToopherAPI request handler to correctly detect and return a well-behaved RequestError instead of just throwing a NullReferenceException when we attempt to access a field on response.

@egrim

egrim commented Jan 12, 2015

Copy link
Copy Markdown
Member

👍

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.

2 participants