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

Stack Overflow | Elisa Leehan | 5 months ago
  1. 0

    Why Am I getting this NullPointerException for the Facebook API share button?

    Stack Overflow | 5 months ago | Elisa Leehan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bits.fbpost/com.example.bits.fbpost.MainActivity}: java.lang.NullPointerException
  2. 0

    Facebook Android SDK v4.0.0 ShareDialog NullPointerException issue

    Stack Overflow | 2 years ago | JanithaR
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Share dialog can't be opened in Android app, nullpointer exception in Facebook SDK

    Stack Overflow | 10 months ago | Mikkel Mørch
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
  5. 0

    Sharing to social media, specifically Facebook

    Stack Overflow | 2 months ago | x10sion
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference

    8 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.util.concurrent.ConcurrentHashMap.get()
    2. Java RT
      ConcurrentHashMap.get
      1. java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:767)
      1 frame
    3. com.facebook.internal
      DialogPresenter.canPresentNativeDialogWithFeature
      1. com.facebook.internal.Utility.getDialogFeatureConfig(Utility.java:907)
      2. com.facebook.internal.DialogPresenter.getVersionSpecForFeature(DialogPresenter.java:255)
      3. com.facebook.internal.DialogPresenter.getProtocolVersionForNativeDialog(DialogPresenter.java:241)
      4. com.facebook.internal.DialogPresenter.canPresentNativeDialogWithFeature(DialogPresenter.java:75)
      4 frames
    4. com.facebook.share
      ShareDialog$NativeHandler.canShow
      1. com.facebook.share.widget.ShareDialog.canShowNative(ShareDialog.java:153)
      2. com.facebook.share.widget.ShareDialog.access$300(ShareDialog.java:56)
      3. com.facebook.share.widget.ShareDialog$NativeHandler.canShow(ShareDialog.java:304)
      4. com.facebook.share.widget.ShareDialog$NativeHandler.canShow(ShareDialog.java:275)
      4 frames
    5. com.facebook.internal
      FacebookDialogBase.canShow
      1. com.facebook.internal.FacebookDialogBase.canShowImpl(FacebookDialogBase.java:135)
      2. com.facebook.internal.FacebookDialogBase.canShow(FacebookDialogBase.java:122)
      2 frames
    6. com.facebook.share
      ShareButtonBase.setShareContent
      1. com.facebook.share.widget.ShareButtonBase.canShare(ShareButtonBase.java:160)
      2. com.facebook.share.widget.ShareButtonBase.setShareContent(ShareButtonBase.java:76)
      2 frames
    7. com.example.bits
      MainActivity.onCreate
      1. com.example.bits.fbpost.MainActivity.onCreate(MainActivity.java:103)
      1 frame
    8. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:5008)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
      3 frames