java.lang.NullPointerException

Appcelerator JIRA | Anna | 5 months ago
  1. 0

    Hello, I'm using a scrollableView on my app. On iOS all works perfect, but on Android always appear this error: {code:java} [ERROR] : TiApplication: (main) [11106,32386] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 5.4.0,2016/04/25 22:10,63d6351 [ERROR] : TiApplication: java.lang.NullPointerException [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.TiUIScrollableView$ViewPagerAdapter.instantiateItem(TiUIScrollableView.java:533) [ERROR] : TiApplication: at android.support.v4.view.PagerAdapter.instantiateItem(PagerAdapter.java:110) [ERROR] : TiApplication: at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:870) [ERROR] : TiApplication: at android.support.v4.view.ViewPager.populate(ViewPager.java:1020) [ERROR] : TiApplication: at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:552) [ERROR] : TiApplication: at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:514) [ERROR] : TiApplication: at android.support.v4.view.ViewPager.dataSetChanged(ViewPager.java:946) [ERROR] : TiApplication: at android.support.v4.view.ViewPager$PagerObserver.onChanged(ViewPager.java:2910) [ERROR] : TiApplication: at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37) [ERROR] : TiApplication: at android.support.v4.view.PagerAdapter.notifyDataSetChanged(PagerAdapter.java:276) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.TiUIScrollableView.setViews(TiUIScrollableView.java:472) [ERROR] : TiApplication: at ti.modules.titanium.ui.ScrollableViewProxy.handleMessage(ScrollableViewProxy.java:110) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:146) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5511) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:515) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283) [ERROR] : TiApplication: [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} This error appear when this line is executed: {code:java} $.lists.setViews(tables_sort); {code}

    Appcelerator JIRA | 5 months ago | Anna
    java.lang.NullPointerException
  2. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at ti.modules.titanium.ui.widget.TiUIScrollableView$ViewPagerAdapter.instantiateItem()
    2. ti.modules.titanium
      TiUIScrollableView$ViewPagerAdapter.instantiateItem
      1. ti.modules.titanium.ui.widget.TiUIScrollableView$ViewPagerAdapter.instantiateItem(TiUIScrollableView.java:533)
      1 frame
    3. Android Support v4
      ViewPager$PagerObserver.onChanged
      1. android.support.v4.view.PagerAdapter.instantiateItem(PagerAdapter.java:110)
      2. android.support.v4.view.ViewPager.addNewItem(ViewPager.java:870)
      3. android.support.v4.view.ViewPager.populate(ViewPager.java:1020)
      4. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:552)
      5. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:514)
      6. android.support.v4.view.ViewPager.dataSetChanged(ViewPager.java:946)
      7. android.support.v4.view.ViewPager$PagerObserver.onChanged(ViewPager.java:2910)
      7 frames
    4. Android Platform
      DataSetObservable.notifyChanged
      1. android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
      1 frame
    5. Android Support v4
      PagerAdapter.notifyDataSetChanged
      1. android.support.v4.view.PagerAdapter.notifyDataSetChanged(PagerAdapter.java:276)
      1 frame
    6. ti.modules.titanium
      ScrollableViewProxy.handleMessage
      1. ti.modules.titanium.ui.widget.TiUIScrollableView.setViews(TiUIScrollableView.java:472)
      2. ti.modules.titanium.ui.ScrollableViewProxy.handleMessage(ScrollableViewProxy.java:110)
      2 frames
    7. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:98)
      2. android.os.Looper.loop(Looper.java:146)
      3. android.app.ActivityThread.main(ActivityThread.java:5511)
      3 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    9. Android
      ZygoteInit$MethodAndArgsCaller.run
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
      1 frame
    10. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame