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 kudesiaji
, 1 year ago
Unable to start activity ComponentInfo{com.example.admin.coursebrowser/com.example.admin.coursebrowser.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by NegNeg64
, 2 weeks ago
Unable to start activity ComponentInfo{com.example.example.example/com.example.example.example.SignUpActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Jennings McEnroe
, 2 years ago
Unable to start activity ComponentInfo{com.jen.jennings.catholicprayers/com.jen.jennings.catholicprayers.PrayerDetailActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Roshan Rajeev
, 10 months ago
Unable to start activity ComponentInfo{com.myfirstapp.myapplication/com.myfirstapp.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Fudge
, 1 year ago
Unable to start activity ComponentInfo{com.gamecodeschool.linearlayoutexperiment/com.gamecodeschool.linearlayoutexperiment.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.admin.coursebrowser/com.example.admin.coursebrowser.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)