[TIMOB-19660] Android: 5.0.2 GA HTTPClient handleResponse error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-10-02T04:19:31.000+0000 |
Affected Version/s | Release 5.0.1, Release 5.0.2, Release 5.0.0 |
Fix Version/s | Release 5.1.0 |
Components | Android |
Labels | Android |
Reporter | Ashraf Abu |
Assignee | Ashraf Abu |
Created | 2015-10-02T03:46:26.000+0000 |
Updated | 2016-06-05T21:29:18.000+0000 |
Description
HttpClient on Android was reported to have this error:
10-02 15:36:24.554: E/TiHTTPClient(22545): (TiHttpClient-25) [63819,195465] HTTP Error (java.lang.NullPointerException): Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference
10-02 15:36:24.554: E/TiHTTPClient(22545): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference
10-02 15:36:24.554: E/TiHTTPClient(22545): at ti.modules.titanium.network.TiHTTPClient.handleResponse(TiHTTPClient.java:195)
10-02 15:36:24.554: E/TiHTTPClient(22545): at ti.modules.titanium.network.TiHTTPClient.access$1200(TiHTTPClient.java:84)
10-02 15:36:24.554: E/TiHTTPClient(22545): at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1194)
10-02 15:36:24.554: E/TiHTTPClient(22545): at java.lang.Thread.run(Thread.java:818)"
Bug occurs at https://github.com/appcelerator/titanium_mobile/blob/5_0_2_GA/android/modules/network/src/java/ti/modules/titanium/network/TiHTTPClient.java#L195
PR: https://github.com/appcelerator/titanium_mobile/pull/7262
PR Merged into 5_0_X
Verified the fix in 5.0.3.v20151022152331. We don't have any handle response errors. Closing. Environment: Appc Studio : 4.4.0.201510231805 Ti SDK : 5.0.3.v20151022152331 Ti CLI : 5.0.5 Alloy : 1.7.18 MAC Yosemite : 10.10.5 Appc NPM : 4.2.1-6 Appc CLI : 5.1.0-38 Node: v0.10.37 Nexus 5 - Android 6.0
I have the issue on 5.2.2 GA (AC-3721)