Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-3058

Android Tableview open & close back to back launch NullPointerException

    Details

      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 :

      in app.js

      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

      Here is the Stack trace for the exception : NullPointer Stacktrace

        Attachments

          Activity

            People

            • Assignee:
              tguntharp Tony Guntharp
              Reporter:
              abbdoul Abbdoul
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code