I added this pull request to my version of the Titanium framework and sometimes got an NPE at this line while testing. Didn't analyze this too deeply but changed the code to 
```
DefaultHttpClient httpClient = tiClient.client;
if (httpClient != null) {
    httpClient.setRedirectHandler(null);
}				
```
which seems to help. The NPE did not occur anymore after this.