I have a news application on Titanium that was working fine on SDK 6.3.0. Since the update to SDK 7.0.1, I am facing a NullPointerException on Android.
I have narrowed down the issue so that I have now a simple test case to reproduce it. Enclosed are the crash logs and the sources used on this sample :
- models/article.js : simple sql article model with id and status fields
- index.xml and index.js : simple news list view and controller
- article.xml and article.js : simple news detail view and controller
The sample works as follows. At launch, a list of news is displayed as a TableView. Each row displays a title and a status.
When you click on an item, a new window is opened to display the news details. In that screen, you must click on the view to set the news status to 1.
When you go back, the list is displayed and the status has been updated on the selected row.
Now as soon as you try to scroll down the screen, the application crashes.
The issue is due to the Alloy Collection update to set the article status to 1.