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 leenolasco
, 1 year ago
Attempt to invoke virtual method 'int android.view.View.getVisibility()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getVisibility()' on a null object reference	at android.widget.LinearLayout.hasDividerBeforeChildAt(LinearLayout.java:637)	at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1155)	at android.widget.TableRow.onMeasure(TableRow.java:114)	at android.view.View.measure(View.java:18417)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1835)	at android.widget.TableLayout.measureChildBeforeLayout(TableLayout.java:464)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:725)	at android.widget.TableLayout.measureVertical(TableLayout.java:476)	at android.widget.TableLayout.onMeasure(TableLayout.java:439)	at android.view.View.measure(View.java:18417)	at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)	at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)	at android.view.View.measure(View.java:18417)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1835)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:725)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:616)	at android.view.View.measure(View.java:18417)	at android.widget.ScrollView.measureChildWithMargins(ScrollView.java:2015)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)	at android.widget.ScrollView.onMeasure(ScrollView.java:484)	at android.view.View.measure(View.java:18417)	at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)	at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)	at android.view.View.measure(View.java:18417)	at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)	at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)	at android.view.View.measure(View.java:18417)	at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)	at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)	at android.view.View.measure(View.java:18417)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)	at android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:668)	at android.support.design.widget.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:90)	at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:1170)	at android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:733)	at android.view.View.measure(View.java:18417)	at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1075)	at android.view.View.measure(View.java:18417)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)	at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)	at android.view.View.measure(View.java:18417)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1835)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:725)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:616)	at android.view.View.measure(View.java:18417)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)	at android.view.View.measure(View.java:18417)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1835)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:725)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:616)