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

Android: TiUIScrollableView showPager() Assumes !null

    Details

      Description

      {html}<div><p>On 1_4_X branch line 84 <a href=
      "http://github.com/appcelerator/titanium_mobile/blob/1_4_X/android/modules/ui/src/ti/modules/titanium/ui/widget/TiUIScrollableView.java">
      TiUIScrollableView.java</a> the showPager method assumes that the
      scrollable view has "showPagingControl" as a property.</p>
      <p>Using the trackball on a G1 caused a customer app to crash with
      a NPE. See <a href=
      "http://developer.appcelerator.com/helpdesk/view/52401">Helpdesk
      52401</a></p>
      <p>~~~</p>
      <p>E/TiUncaughtHandler( 919): (main) [2072,15484] Sending event:
      exception on thread: main msg:java.lang.NullPointerException<br>
      E/TiUncaughtHandler( 919): java.lang.NullPointerException<br>
      E/TiUncaughtHandler( 919): at
      org.appcelerator.titanium.util.TiConvert.toBoolean(TiConvert.java:223)<br>
      E/TiUncaughtHandler( 919): at
      ti.modules.titanium.ui.widget.TiUIScrollableView.showPager(TiUIScrollableView.java:84)<br>
      E/TiUncaughtHandler( 919): at
      ti.modules.titanium.ui.ScrollableViewProxy.handleMessage(ScrollableViewProxy.java:69)<br>
      E/TiUncaughtHandler( 919): at
      android.os.Handler.dispatchMessage(Handler.java:95)<br>
      E/TiUncaughtHandler( 919): at
      android.os.Looper.loop(Looper.java:123)<br>
      E/TiUncaughtHandler( 919): at
      android.app.ActivityThread.main(ActivityThread.java:4203)<br>
      E/TiUncaughtHandler( 919): at
      java.lang.reflect.Method.invokeNative(Native Method)<br>
      E/TiUncaughtHandler( 919): at
      java.lang.reflect.Method.invoke(Method.java:521)<br>
      E/TiUncaughtHandler( 919): at
      com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)<br>
      E/TiUncaughtHandler( 919): at
      com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)<br>
      E/TiUncaughtHandler( 919): at dalvik.system.NativeStart.main(Native
      Method)<br>
      ~~~</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              dthorp Don Thorp
              Reporter:
              dthorp Don Thorp
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration