java.lang.NullPointerException

tip

This was issue #706 in tabris-js. It happens when you have a switch in a CollectionView that is child of a Tab. Updating tabris or changing the switch for a Checkbox seems to solve the issue.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Force close in LinearLayout
    via Stack Overflow by user180460
    ,
  • Stack Overflow
    via by Unknown author,
    • java.lang.NullPointerException at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5229) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4453) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4363) at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1961) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1370) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1333) at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:562) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2900) at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3071) at android.view.View.layout(View.java:15092) at android.view.ViewGroup.layout(ViewGroup.java:4645) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525) at android.widget.LinearLayout.onLayout(LinearLayout.java:1434) at android.view.View.layout(View.java:15092) at android.view.ViewGroup.layout(ViewGroup.java:4645) at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1627) at android.view.View.layout(View.java:15092) at android.view.ViewGroup.layout(ViewGroup.java:4645) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525) at android.widget.LinearLayout.onLayout(LinearLayout.java:1434) at android.view.View.layout(View.java:15092) at android.view.ViewGroup.layout(ViewGroup.java:4645) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:15092) at android.view.ViewGroup.layout(ViewGroup.java:4645) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525) at android.widget.LinearLayout.onLayout(LinearLayout.java:1434) at android.view.View.layout(View.java:15092) at android.view.ViewGroup.layout(ViewGroup.java:4645) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:15092) at android.view.ViewGroup.layout(ViewGroup.java:4645) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525) at android.widget.LinearLayout.onLayout(LinearLayout.java:1434) at android.view.View.layout(View.java:15092) at android.view.ViewGroup.layout(ViewGroup.java:4645) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:15092) at android.view.ViewGroup.layout(ViewGroup.java:4645) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2007) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1764) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1020) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5768) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:824) at android.view.Choreographer.doCallbacks(Choreographer.java:624) at android.view.Choreographer.doFrame(Choreographer.java:594) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:810) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:149) at android.app.ActivityThread.main(ActivityThread.java:5257) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515)

    Users with the same issue

    mathan mmathan m
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    emmanuelstroememmanuelstroem
    4 times, last one,
    dmitrydmitry
    8 times, last one,
    37 more bugmates