java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bits.fbpost/com.example.bits.fbpost.MainActivity}: java.lang.NullPointerException

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

Solutions on the web

via Stack Overflow by Elisa Leehan
, 1 year ago
Unable to start activity ComponentInfo{com.example.bits.fbpost/com.example.bits.fbpost.MainActivity}: java.lang.NullPointerException
via Stack Overflow by Wijden
, 2 years ago
Unable to start activity ComponentInfo{Activity}: java.lang.NullPointerException
via GitHub by AshotKarapetyan1
, 1 month ago
Unable to start activity ComponentInfo{.DebugLogsActivity}: java.lang.NullPointerException
via GitHub by marcorighini
, 2 years ago
Unable to start activity ComponentInfo{....ContainerActivity}: java.lang.NullPointerException
via Stack Overflow by membersound
, 2 years ago
Unable to start activity ComponentInfo{MyActivity}: java.lang.NullPointerException
via Stack Overflow by proJ
, 2 years ago
Unable to start activity ComponentInfo{-/-.PlacesMapActivity}: java.lang.NullPointerException
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bits.fbpost/com.example.bits.fbpost.MainActivity}: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:767)
at com.facebook.internal.Utility.getDialogFeatureConfig(Utility.java:907)
at com.facebook.internal.DialogPresenter.getVersionSpecForFeature(DialogPresenter.java:255)
at com.facebook.internal.DialogPresenter.getProtocolVersionForNativeDialog(DialogPresenter.java:241)
at com.facebook.internal.DialogPresenter.canPresentNativeDialogWithFeature(DialogPresenter.java:75)
at com.facebook.share.widget.ShareDialog.canShowNative(ShareDialog.java:153)
at com.facebook.share.widget.ShareDialog.access$300(ShareDialog.java:56)
at com.facebook.share.widget.ShareDialog$NativeHandler.canShow(ShareDialog.java:304)
at com.facebook.share.widget.ShareDialog$NativeHandler.canShow(ShareDialog.java:275)
at com.facebook.internal.FacebookDialogBase.canShowImpl(FacebookDialogBase.java:135)
at com.facebook.internal.FacebookDialogBase.canShow(FacebookDialogBase.java:122)
at com.facebook.share.widget.ShareButtonBase.canShare(ShareButtonBase.java:160)
at com.facebook.share.widget.ShareButtonBase.setShareContent(ShareButtonBase.java:76)
at com.example.bits.fbpost.MainActivity.onCreate(MainActivity.java:103)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)

Users with the same issue

6 times, 6 months ago
201 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
21 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.