Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Use string.Empty rather than null as the default response text when throwing exceptions #2505
refs #2335 - I was seeing a NullReferenceException due to responseText_ being set to null when the response had no content, and the construtor for ApiException trying to call Substring on the null value.
Defaulting responseText_ to string.Empty instead of null seems to avoid that ok (same idea as the change made for #2268)