Monday, December 7, 2009

Android platform issues 2

Earlier I've written about NPE in Android platform HttpClient 4.x.

Today I've investigated the problem deeply.

The class DefaultRequestDirector has the code problem inside execute() function.

If the connection is made to the proxy (proxy chain) but not directly to the target server and such connection is lost we will get NPE in line 445, because of response = null:

response.setParams(params);

The main problem is happened in code lines 413 - 440. If IOException occures and we don't have a direct connection to the host than the value retrying = false and response = null.

No comments:

Post a Comment