[WARN] W/System.err: java.lang.NullPointerException
[WARN] W/System.err: at ti.modules.titanium.network.TiHTTPClient.getResponseHeader(TiHTTPClient.java:772)
[WARN] W/System.err: at ti.modules.titanium.network.HTTPClientProxy.getResponseHeader(HTTPClientProxy.java:93)
[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.nativeCallProperty(Native Method)
[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.callProperty(V8Object.java:69)
[WARN] W/System.err: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1121)
[WARN] W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
[WARN] W/System.err: at android.os.Looper.loop(Looper.java:137)
[WARN] W/System.err: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
At
https://github.com/appcelerator/titanium_mobile/blob/3_3_0_RC/android/modules/network/src/java/ti/modules/titanium/network/TiHTTPClient.java#L772 you’re using
responseHeaders
when
theHeaders
were used for the non-null check.
Thank you for the ticket. Do you have a code snippet you used to reproduce the issue?
NM. This should have been fixed as a result of a later checkin (see https://github.com/appcelerator/titanium_mobile/pull/5795). Can you confirm it is fixed by using a CI build?
Fixed as a result of https://github.com/appcelerator/titanium_mobile/pull/5795.
I’ll check it as soon as possible, but you could have to wait a day or two. There was another issue associated with this error and I couldn’t tell them apart. Thank you for the responsiveness!
It’s no more reproducible with
3.4.0.v20140616174112
. Awesome!Great to hear. Thanks!
Thanks for the great work you’re doing in the 3.3.0 release!
[~hpham]- can you please provide any test code snippet/steps to test the fix for this ticket.