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 mario margo
, 1 year ago
Unable to start activity ComponentInfo{com.example.development_laptop.vhp_restotemp/com.example.development_laptop.vhp_restotemp.TableActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.json.JSONArray.length()' on a null object reference
via GitHub by JDaniel4468
, 1 year ago
Unable to start activity ComponentInfo{com.fernbanklinks.frcscore/com.fernbanklinks.frcscore.TBAEvents}: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.json.simple.JSONArray.size()' on a null object reference
via Stack Overflow by user5792452
, 2 years ago
Unable to start activity ComponentInfo{com.example.anthony.triviaapp/com.example.anthony.TriviaApplication.Play}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.database.sqlite.SQLiteDatabase.getVersion()' on a null object reference
via Stack Overflow by Dawid Trojanowski
, 2 years ago
Unable to start activity ComponentInfo{com.sitepoint.facebook/com.project.you_first.FriendsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
via Stack Overflow by rib
, 2 years ago
Unable to start activity ComponentInfo{com.lama.csgosmokes/com.lama.csgosmokes.Smoke}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
via Stack Overflow by orange
, 1 year ago
Unable to start activity ComponentInfo{com.example.abe.ateneofiesta/com.example.abe.ateneofiesta.Games}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.development_laptop.vhp_restotemp/com.example.development_laptop.vhp_restotemp.TableActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.json.JSONArray.length()' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)