java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.chargerpoints/com.example.android.chargerpoints.IndividualCouponActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.android.chargerpoints.Coupon.getCompanyName()' 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

Solutions on the web

via Stack Overflow by Shivani Vyas
, 9 months ago
Unable to start activity ComponentInfo{com.example.android.chargerpoints/com.example.android.chargerpoints.IndividualCouponActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.android.chargerpoints.Coupon.getCompanyName()' on a null object reference
via Stack Overflow by svyas33
, 6 months ago
Unable to start activity ComponentInfo{com.example.android.chargerpoints/com.example.android.chargerpoints.LogonActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via GitHub by jjhesk
, 1 year ago
Unable to start activity ComponentInfo{****}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.loopj.android.http.AsyncHttpClient.addHeader(java.lang.String, java.lang.String)' on a null object reference
via GitHub by leonardo2204
, 11 months ago
Unable to start activity ComponentInfo{br.com.dinda.qa/br.com.dinda.views.activities.SplashActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference
via GitHub by dmsherazi
, 1 year ago
Unable to start activity ComponentInfo{net.kindows.chitchat/net.kindows.chitchat.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
via GitHub by BlackMagicHappy
, 2 months ago
Unable to start activity ComponentInfo{*****************/com.sina.weibo.sdk.share.WbShareTransActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Parcelable android.os.Bundle.getParcelable(java.lang.String)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.chargerpoints/com.example.android.chargerpoints.IndividualCouponActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.android.chargerpoints.Coupon.getCompanyName()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 10 months ago
Samebug visitor profile picture
Unknown user
2 times, 7 months ago
8 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
12 times, 11 months ago
109 more bugmates

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