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 | 2 weeks 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 | 2 weeks 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 | 4 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

    Android SQLite Quiz App

    Stack Overflow | 7 months ago | Nasim Ahmed
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.nasimahmed.quizgame/com.example.nasimahmed.quizgame.WorldHistory}: java.lang.NullPointerException: Attempt to invoke virtual method 'long android.database.sqlite.SQLiteDatabase.insert(java.lang.String, java.lang.String, android.content.ContentValues)' on a null object reference

  1. Indri Yunita 4 times, last 2 weeks ago
  2. andreeaa marin 184 times, last 1 month ago
  3. Reich 59 times, last 1 month ago
  4. gamebusterz 40 times, last 1 month ago
  5. Emrah Küçük 3 times, last 2 months ago
42 more registered users
11 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