Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3058] Android Tableview open & close back to back launch NullPointerException

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-08-06T10:09:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels1.7.0, Android, close, exception, nullpointer, open, tableview
ReporterAbbdoul
AssigneeTony Guntharp
Created2011-06-15T00:26:47.000+0000
Updated2016-03-08T07:48:06.000+0000

Description

After that I updated the SDK to the final release 1.7.0 of monday (13th June), there is an issue with the tableView.. I have a window which contains a tableView with one single tableViewRow (with a label...) On Android (2.2) when I open this window, and close it afterwards, and I do this again (so back to back 2 open & close), and then I open the window for the 3rd time, the application gets a NullPointer Exception. Here is how I open the window :
var viewListWindow = Ti.UI.createWindow(
{
 url : 'listView.js',
 title : 'list',
 backgroundColor : '#75587E' 
});
 
 
var openListButton = Ti.UI.createButton(
{
 title : 'open list Window',
 width : 200,
 height : 50,
 top : 100
});
 
openListButton.addEventListener("click", function(e)
{
 viewListWindow.open();
});
And I close it using the *"physical"* back button in Android. Here are the pasties for the code I used (window with the table view) : [listView.js](http://pastie.org/private/puwygigdqdczraznhvegq) Here is the Stack trace for the exception : [NullPointer Stacktrace](http://pastie.org/private/uhjtvxzz8i8mpseqvtekw)

Comments

  1. Abbdoul 2011-06-15

    TIMOB bug, but cannot create an issue choosing Titanium Mobile as project ?!...
  2. Paul Dowsett 2011-07-23

    Abbdoul In order for us to progress this issue, we need a usecase that runs without modification. Please correct your script and add it as a code block to the main body of this ticket. Also, please provide the build date and hash of the latest Titanium SDK you have tried (preferably 1.7.2, or the latest 1.7.X [continuous build](http://wiki.appcelerator.org/display/guides/Continuous+Builds)). The guidelines for creating tickets can be found at [Submitting Bug Reports](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-SubmittingBugReports). Thanks
  3. Paul Dowsett 2011-08-06

    No response from user.
  4. Paul Dowsett 2011-10-07

    Closing due to inactivity.

JSON Source