java.lang.NullPointerException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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.

Solutions on the web

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.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.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

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
37 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.