Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26847] Android: Fix stringify of custom TableView row

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2019-03-26T10:30:40.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sRelease 8.0.1
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2019-02-22T00:47:16.000+0000
Updated2020-08-05T14:52:31.000+0000

Description

- Prevent exception when JSON.stringify a custom TableViewRow
TiExceptionHandler: (main) [5645,45992] Attempt to invoke virtual met
hod 'void org.appcelerator.titanium.view.TiUIView.registerForTouch()' on a null 
object reference
[ERROR] :  TiExceptionHandler:
[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.h
andleGetView(TiViewProxy.java:594)
[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.proxy.TiViewProxy.h
andleMessage(TiViewProxy.java:270)
[ERROR] :  TiExceptionHandler:     android.os.Handler.dispatchMessage(Handler.ja
va:102)
[ERROR] :  TiExceptionHandler:     android.os.Looper.loop(Looper.java:193)
[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.main(ActivityThrea
d.java:6669)
[ERROR] :  TiExceptionHandler:     java.lang.reflect.Method.invoke(Native Method
)
[ERROR] :  TiExceptionHandler:     com.android.internal.os.RuntimeInit$MethodAnd
ArgsCaller.run(RuntimeInit.java:493)
[ERROR] :  TiExceptionHandler:     com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:858)

Comments

  1. Gary Mathews 2019-03-01

    master: https://github.com/appcelerator/titanium_mobile/pull/10742 8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10743
  2. Samir Mohammed 2019-03-21

  3. Gary Mathews 2019-03-21

    [~smohammed] Updated PRs
  4. Samir Mohammed 2019-03-25

    FR Passed, Waiting on Jenkins builds.
  5. Samir Mohammed 2019-03-26

    *Closing ticket.* Fix verified in SDK version 8.0.1.v20190325125116} and SDK Version 8.1.0.v20190325115012 Test and other information can be found at: master: https://github.com/appcelerator/titanium_mobile/pull/10742 8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10743

JSON Source