swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[Android] Crash w/ volley timeout

Open jaz-ah opened this issue 10 years ago • 2 comments

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)

jaz-ah avatar Apr 06 '16 20:04 jaz-ah

Thanks @jaz-ah. Appreciate your contribution.

wing328 avatar Apr 07 '16 11:04 wing328

Closed via https://github.com/swagger-api/swagger-codegen/pull/2513

wing328 avatar Apr 30 '16 08:04 wing328