swagger-codegen
swagger-codegen copied to clipboard
[Android] Crash w/ volley timeout
If you get a volley network timeout the generated android code will crash because it is trying to dereference a null pointer here:
throw new ApiException(((VolleyError) ex.getCause()).networkResponse.statusCode, ((VolleyError) ex.getCause()).getMessage());
where networkResponse can be null.
(easy fix - i'll submit in a PR)
Thanks @jaz-ah. Appreciate your contribution.
Closed via https://github.com/swagger-api/swagger-codegen/pull/2513