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

Stack Overflow | Shivani Vyas | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    My Realm object is giving me a null pointer exception with a virtual method. Is it an issue with my Realm code or the java?

    Stack Overflow | 1 month ago | Shivani Vyas
    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
  2. 0
    samebug tip
    The resource was accessed after it was dismissed.
  3. 0

    Android app crashing on launch

    Stack Overflow | 5 months ago | Mattia Rubini
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.projectcalculator/com.example.android.projectcalculator.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to execute SQLite database within android app

    Stack Overflow | 1 year ago | RupaRupa
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.rpholmes.digibottle/com.example.rpholmes.digibottle.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase$CursorFactory, android.database.DatabaseErrorHandler)' on a null object reference
  6. 0

    attempt to invoke virtual method on a null Object (NullPointerException)

    Stack Overflow | 2 weeks ago | Torben
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.popularmoviesapp/com.example.android.popularmoviesapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.GridView.setSelection(int)' on a null object reference

  1. Indri Yunita 7 times, last 1 month ago
  2. andreeaa marin 184 times, last 2 months ago
  3. Reich 59 times, last 2 months ago
  4. gamebusterz 40 times, last 2 months ago
  5. Emrah Küçük 3 times, last 3 months ago
42 more registered users
13 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
    2 frames