Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19660] Android: 5.0.2 GA HTTPClient handleResponse error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-10-02T04:19:31.000+0000
Affected Version/sRelease 5.0.1, Release 5.0.2, Release 5.0.0
Fix Version/sRelease 5.1.0
ComponentsAndroid
LabelsAndroid
ReporterAshraf Abu
AssigneeAshraf Abu
Created2015-10-02T03:46:26.000+0000
Updated2016-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)"

Comments

  1. Ashraf Abu 2015-10-02

    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
  2. Ashraf Abu 2015-10-02

  3. Ashraf Abu 2015-10-02

    PR: https://github.com/appcelerator/titanium_mobile/pull/7262
  4. Ashraf Abu 2015-10-02

    PR Merged into 5_0_X
  5. Lokesh Choudhary 2015-10-27

    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
  6. Andrea 2016-06-05

    I have the issue on 5.2.2 GA (AC-3721)

JSON Source