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

Android: Calling ScrollableView's setters causes a crash if parent window is closed as of 7.0.0

    Details

    • Story Points:
      1
    • Sprint:
      2018 Sprint 05 SDK, 2018 Sprint 04 SDK

      Description

      Hi,

      We are migrating our app from 6.3.0GA Ti SDK to 7.0.0.GA SDK and we are facing couple of issues:

      1. In a window, we are using scrollable view and on close of window we are emptying the views of scrollable view by using scrollableView.views = []. with 6.3.0.GA it is working fine but with 7.0.0.GA we are getting error stating

      “TiApplication: (main) [16638,27440] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to destroy activity {com.hthworldwide.GeoBlue/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void ti.modules.titanium.ui.widget.TiUIScrollableView.setViews(java.lang.Object)' on a null object reference; Titanium 7.0.1,2017/12/18 10:42,undefined”
      

      2. In a window, we are using activity indicator and on close of that window we are hiding activity indicator by activityIndicator.hide(). with 6.3.0.GA it is working fine but with 7.0.0.GA we are getting error stating

      “TiApplication(16766): (main) [21008,142400] Sending event: exception on thread: main msg:java.lang.NullPointerException: Attempt to invoke virtual method 'void ti.modules.titanium.ui.widget.TiUIActivityIndicator.hide()' on a null object reference; Titanium 7.0.1,2017/12/18 10:42,undefined”
      

      Steps to reproduce the issues:
      1. Create a sample classic project
      2. Copy the attached files and paste them into resources folder
      3. Run the App on android device
      4. Click on the label “click to view scrollable window”, once window is opened click on android back button.
      5. Click on label “click to show indicator”, once window is opened click on android back button.

      Note : This is an issue in android platform.
      Even tried with 7.0.1.GA sdk still we are facing these issues.

        Attachments

        1. activityIndWin.js
          0.8 kB
        2. app.js
          0.6 kB
        3. ScrollableViewCloseTest.js
          0.7 kB
        4. scrollableWin.js
          0.8 kB

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              aislam Aminul Islam
              Reviewer:
              Gary Mathews
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code