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 Anca Mihai
, 1 year ago
Unable to start activity ComponentInfo{com.example.mihaianca.helloword/com.example.mihaianca.helloword.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothAdapter.isEnabled()' on a null object reference
via GitHub by lorugant
, 3 months ago
Unable to start activity ComponentInfo{io.treehouses.remote/io.treehouses.remote.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothAdapter.isEnabled()' on a null object reference
via GitHub by vladaman
, 2 weeks ago
Unable to start activity ComponentInfo{com.myapp/com.sumup.merchant.ui.Activities.CheckoutAPIDrivenPageActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothAdapter.isEnabled()' on a null object reference
via Stack Overflow by About_Blank
, 1 year ago
Unable to start activity ComponentInfo{com.example.caroline.colorfinder/com.example.caroline.colorfinder.ColorFinderActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothAdapter.isEnabled()' on a null object reference
via Stack Overflow by HadMatter217
, 3 months ago
Unable to start activity ComponentInfo{com.janebrew.janebrewphone/com.janebrew.janebrewphone.ConnectToHostActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.FileDescriptor.isSocket$()' 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
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mihaianca.helloword/com.example.mihaianca.helloword.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothAdapter.isEnabled()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)