[TIMOB-24926] Android: Prevent fireEvent when proxy has been released
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-07-10T18:30:22.000+0000 |
Affected Version/s | Release 6.1.1 |
Fix Version/s | Release 6.1.2 |
Components | Android |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2017-07-03T14:26:34.000+0000 |
Updated | 2017-08-03T15:57:00.000+0000 |
Description
- Prevent
fireEvent
taking place on a null
proxy
*TEST CASE*
var win = Ti.UI.createWindow(),
a = Ti.UI.createView(),
b = Ti.UI.createView(),
c = Ti.UI.createView(),
row = Ti.UI.createTableViewRow(),
table = Ti.UI.createTableView({data: [row]}),
scrollableView = Ti.UI.createScrollableView({
views: [a, b, c]
}),
i = 0;
row.add(Ti.UI.createImageView());
c.add(table);
setInterval(function() {
scrollableView.currentPage = i++ % 3;
}, 1000);
win.add(scrollableView);
win.open();
master: https://github.com/appcelerator/titanium_mobile/pull/9189
Any chance, when merged, this could be back ported to the 6.1.x branch? Addresses a major crasher I have in production.
6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9204
Closing ticket, as changes are seen in SDK 6.1.2.v20170710160853.