Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25658

TableView NullPointerException on getOuterView Titanium 7.0.1 Android

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: Release 7.0.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      macOS 10.12.6, SDK 7.0.1

      Description

      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.

      function read() {
      	var article = Alloy.Collections.article.at(index);
      	article.save({status: 1});
      }
      

      Regards

        Attachments

        1. app.zip
          2 kB
        2. environment_check.txt
          5 kB
        3. genymotion_console_logs.txt
          11 kB
        4. log.txt
          21 kB
        5. TableTest.zip
          8.97 MB

          Issue Links

            Activity

              People

              • Assignee:
                ybanev Yordan Banev
                Reporter:
                sliemlahi Saïd Liemlahi
                Reviewer:
                Joshua Quick
                Tester:
                Lokesh Choudhary
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6086
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code