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 GitHub by Valodim
, 1 year ago
Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference
via GitHub by 4xes
, 1 year ago
Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference
via GitHub by GaganKainth
, 1 year ago
Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference
via GitHub by jlmalone
, 1 year ago
Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference	at com.tonicartos.superslim.LayoutManager.getAnchorAtEnd(LayoutManager.java:1038)	at com.tonicartos.superslim.LayoutManager.fillNextSectionToEnd(LayoutManager.java:725)	at com.tonicartos.superslim.LayoutManager.layoutChildren(LayoutManager.java:1369)	at com.tonicartos.superslim.LayoutManager.onLayoutChildren(LayoutManager.java:276)	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3260)	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3069)	at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)	at org.sufficientlysecure.keychain.ui.util.recyclerview.fastscroll.FastScrollRecyclerView.onLayout(FastScrollRecyclerView.java:53)	at android.view.View.layout(View.java:16639)	at android.view.ViewGroup.layout(ViewGroup.java:5437)	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)	at android.widget.FrameLayout.onLayout(FrameLayout.java:273)	at android.view.View.layout(View.java:16639)	at android.view.ViewGroup.layout(ViewGroup.java:5437)	at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)	at android.view.View.layout(View.java:16639)	at android.view.ViewGroup.layout(ViewGroup.java:5437)	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)	at android.widget.FrameLayout.onLayout(FrameLayout.java:273)	at android.view.View.layout(View.java:16639)	at android.view.ViewGroup.layout(ViewGroup.java:5437)	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)	at android.widget.FrameLayout.onLayout(FrameLayout.java:273)	at android.view.View.layout(View.java:16639)	at android.view.ViewGroup.layout(ViewGroup.java:5437)	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)	at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)