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 Rick Huisman
, 1 year ago
Unable to start activity ComponentInfo{com.rickhuisman.shoppinglist/com.rickhuisman.shoppinglist.CompletedActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
via Stack Overflow by Jackie
, 10 months ago
Unable to start activity ComponentInfo{com.hong.user.healthyfx/com.hong.user.healthyfx.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
via Stack Overflow by Ufomammut
, 3 months ago
Unable to start activity ComponentInfo{com.example.abcd.color_change/com.example.abcd.color_change.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
via GitHub by nlefler
, 1 year ago
Unable to start activity ComponentInfo{com.nlefler.requerytest/com.nlefler.requerytest.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Class io.requery.meta.Type.getClassType()' on a null object reference
via Stack Overflow by Kero Fawzy
, 1 year ago
Unable to start activity ComponentInfo{com.massive.movieapp/com.massive.movieapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'io.realm.RealmQuery io.realm.Realm.where(java.lang.Class)' on a null object reference
via GitHub by aliabbasjaffri
, 2 years ago
Unable to start activity ComponentInfo{com.ipal.itu.harzindagi/com.ipal.itu.harzindagi.Activities.ChildrenListActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.activeandroid.TableInfo com.activeandroid.ModelInfo.getTableInfo(java.lang.Class)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rickhuisman.shoppinglist/com.rickhuisman.shoppinglist.CompletedActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)