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 GitHub by avishayil
, 1 year ago
Unable to start activity ComponentInfo{com.zuznow.geektime/com.zuznow.geektime.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean io.branch.referral.Branch.initSession(io.branch.referral.Branch$BranchReferralInitListener, android.net.Uri, android.app.Activity)' on a null object reference
via Stack Overflow by Nasir ALAM
, 1 month ago
Unable to start activity ComponentInfo{com.example.user.attendance/com.example.user.attendance.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Activity android.app.Fragment.getActivity()' on a null object reference
via GitHub by sergiocastell
, 1 year ago
Unable to start activity ComponentInfo{rom.stalker/browser.afh.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.net.NetworkInfo.isConnected()' on a null object reference
via GitHub by xbitlabs
, 1 year ago
Unable to start activity ComponentInfo{im.actor.cloud.free/im.actor.cloud.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean im.actor.core.AndroidMessenger.isLoggedIn()' on a null object reference
via GitHub by USBhost
, 2 years ago
Unable to start activity ComponentInfo{com.google.android.setupwizard/com.google.android.setupwizard.user.WelcomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.setupwizard.accessibility.AccessibilityGestureHelper.isAccessibilityEnabled()' on a null object reference
via Stack Overflow by NetflixAndChill
, 1 month ago
Unable to start activity ComponentInfo{de.sidacon.sidaconsd/de.sidacon.sidaconsd.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.exists()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zuznow.geektime/com.zuznow.geektime.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean io.branch.referral.Branch.initSession(io.branch.referral.Branch$BranchReferralInitListener, android.net.Uri, android.app.Activity)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)