Skip to content

Fix NullReferenceException if one provides fake url as a server#42

Open
trams wants to merge 1 commit intoetsy:masterfrom
criteo-forks:null_reference
Open

Fix NullReferenceException if one provides fake url as a server#42
trams wants to merge 1 commit intoetsy:masterfrom
criteo-forks:null_reference

Conversation

@trams
Copy link
Contributor

@trams trams commented Feb 6, 2017

No description provided.

@initialcontext
Copy link
Contributor

Not a bad idea here. iirc at Etsy it was handy to fail fast if someone deployed with a bad server URL we might not want to mask that completely, but could handle it better than NPE. Any thoughts about doing something in between? Any Etsy folks have input on this?

@trams
Copy link
Contributor Author

trams commented Feb 7, 2017

I am okay with either solution. We could throw a distinct exception instead of NPE

@initialcontext
Copy link
Contributor

My instinct is a better error message would be the play here, but I'll defer to the Etsy folks to decide that as they can merge. Nice find, thanks for the contrib!

@nixsticks
Copy link
Contributor

@trams Thanks for your contribution! We'd love to add a distinct exception/informative error message, as @initialcontext suggested.

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.

3 participants