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

  1. ,

    Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by Kortney Stinson
, 1 year ago
Unable to start activity ComponentInfo{com.example.stins.calculator/com.example.stins.calculator.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.widget.TextView.getContext()' on a null object reference
via Stack Overflow by caleb grimah
, 1 year ago
Unable to start activity ComponentInfo{wait.com.linasblog/wait.com.linasblog.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
via Stack Overflow by Zack
, 1 year ago
Unable to start activity ComponentInfo{com.androidproject.example/com.androidproject.example.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.app.Activity.getApplicationContext()' on a null object reference
via Stack Overflow by Sriram R
, 1 year ago
Unable to start activity ComponentInfo{com.sriramr.movies/com.sriramr.movies.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context com.sriramr.movies.MyApplication.getApplicationContext()' on a null object reference
via Stack Overflow by Onur Ozbek
, 9 months ago
Unable to start activity ComponentInfo{myapp.onur.criminalintent/myapp.onur.criminalintent.CrimeListActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
via Stack Overflow by Gurankas
, 11 months ago
Unable to start activity ComponentInfo{com.khalsa.gurankassingh.blockbreaker/com.khalsa.gurankassingh.blockbreaker.BlockBreakerPanel}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.stins.calculator/com.example.stins.calculator.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.widget.TextView.getContext()' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)