java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.report/com.example.report.started_report}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.CheckBox.setOnCheckedChangeListener(android.widget.CompoundButton$OnCheckedChangeListener)' on a null object reference

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by HextechEnthusiast
, 1 year ago
Unable to start activity ComponentInfo{com.example.report/com.example.report.started_report}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.CheckBox.setOnCheckedChangeListener(android.widget.CompoundButton$OnCheckedChangeListener)' on a null object reference
via Stack Overflow by Omar BISTAMI
, 1 year ago
Unable to start activity ComponentInfo{sqllistviewdemo.wptrafficanalyzer.in.radiobutton/sqllistviewdemo.wptrafficanalyzer.in.radiobutton.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.CheckBox.setOnCheckedChangeListener(android.widget.CompoundButton$OnCheckedChangeListener)' on a null object reference
via Stack Overflow by Prem Chand
, 1 year ago
Unable to start activity ComponentInfo{com.example.test/com.example.test.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.RadioGroup.setOnCheckedChangeListener(android.widget.RadioGroup$OnCheckedChangeListener)' on a null object reference
via 21ic.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.myself/com.example.myself.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.RadioGroup.setOnCheckedChangeListener(android.widget.RadioGroup$OnCheckedChangeListener)' on a null object reference
via GitHub by EugeneHoran
, 1 year ago
Unable to start activity ComponentInfo{com.eugene.fithealthmaingit/com.eugene.fithealthmaingit.UI.SaveSearchAddItemActivityMain}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.animation.ValueAnimator.reverse()' on a null object reference
via Stack Overflow by Elem3nt4l Sh0tZ
, 2 years ago
Unable to start activity ComponentInfo{.Categories}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.RelativeLayout.setVisibility(int)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.report/com.example.report.started_report}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.CheckBox.setOnCheckedChangeListener(android.widget.CompoundButton$OnCheckedChangeListener)' on a null object reference
at com.example.relatoriodeobras.started_alvara.onCreate(started_alvara.java:21)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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