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

Solutions on the web

via Stack Overflow by A.asha
, 1 year ago
java.lang.NullPointerException: 	at com.example.anilkumar.json.MainActivity$Rvadapter.getItemCount(MainActivity.java:154)	at android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3170)	at android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2782)	at android.view.View.measure(View.java:12723)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1369)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:660)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:553)	at android.view.View.measure(View.java:12723)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)	at android.view.View.measure(View.java:12723)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1369)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:660)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:553)	at android.view.View.measure(View.java:12723)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)	at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2092)	at android.view.View.measure(View.java:12723)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1064)	at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)	at android.os.Handler.dispatchMessage(Handler.java:99)	at android.os.Looper.loop(Looper.java:137)	at android.app.ActivityThread.main(ActivityThread.java:4424)	at java.lang.reflect.Method.invokeNative(Native Method)	at java.lang.reflect.Method.invoke(Method.java:511)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)