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

Crash when closing a window with a TableView on Android

    Details

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

      Titanium SDK 6.1.0.v20170519131839
      Android

    • Story Points:
      2
    • Sprint:
      2017 Sprint 11 SDK

      Description

      The app crash when closing a window that contain a TableView in a ScrollView.

      FATAL EXCEPTION: main
      Process: com.test.test222, PID: 15752
      java.lang.RuntimeException: Unable to destroy activity {com.test.test222/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to read from field 'ti.modules.titanium.ui.widget.TiUIScrollView$TiScrollViewLayout ti.modules.titanium.ui.widget.TiUIScrollView$TiHorizontalScrollView.layout' on a null object reference
      	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4639)
      	at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4662)
      	at android.app.ActivityThread.-wrap7(ActivityThread.java)
      	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1711)
      	at android.os.Handler.dispatchMessage(Handler.java:102)
      	at android.os.Looper.loop(Looper.java:154)
      	at android.app.ActivityThread.main(ActivityThread.java:6688)
      	at java.lang.reflect.Method.invoke(Native Method)
      	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
      	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
      Caused by: java.lang.NullPointerException: Attempt to read from field 'ti.modules.titanium.ui.widget.TiUIScrollView$TiScrollViewLayout ti.modules.titanium.ui.widget.TiUIScrollView$TiHorizontalScrollView.layout' on a null object reference
      	at ti.modules.titanium.ui.widget.TiUIScrollView$TiHorizontalScrollView.access$1000(TiUIScrollView.java:290)
      	at ti.modules.titanium.ui.widget.TiUIScrollView.getLayout(TiUIScrollView.java:586)
      	at ti.modules.titanium.ui.widget.TiUIScrollView.remove(TiUIScrollView.java:666)
      	at org.appcelerator.titanium.view.TiUIView.release(TiUIView.java:1259)
      	at org.appcelerator.titanium.proxy.TiViewProxy.releaseViews(TiViewProxy.java:543)
      	at org.appcelerator.titanium.proxy.TiViewProxy.releaseViews(TiViewProxy.java:540)
      	at org.appcelerator.titanium.proxy.TiWindowProxy.closeFromActivity(TiWindowProxy.java:191)
      	at org.appcelerator.titanium.TiBaseActivity.onDestroy(TiBaseActivity.java:1579)
      	at org.appcelerator.titanium.TiActivity.onDestroy(TiActivity.java:32)
      	at android.app.Activity.performDestroy(Activity.java:7165)
      	at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1161)
      	at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4626)
      	... 9 more
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              gaspard.le Luc-Edmond Gaspard
              Reviewer:
              Joshua Quick
              Tester:
              Josh Longton
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code