java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference

Stack Overflow | x10sion | 2 months ago
  1. 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
  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. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

    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

      Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference

      at java.util.concurrent.ConcurrentHashMap.get()
    2. Java RT
      ConcurrentHashMap.get
      1. java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:746)
      1 frame
    3. com.facebook.internal
      DialogPresenter.canPresentNativeDialogWithFeature
      1. com.facebook.internal.Utility.getDialogFeatureConfig(Utility.java:922)
      2. com.facebook.internal.DialogPresenter.getVersionSpecForFeature(DialogPresenter.java:254)
      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:162)
      2. com.facebook.share.widget.ShareDialog.access$300(ShareDialog.java:65)
      3. com.facebook.share.widget.ShareDialog$NativeHandler.canShow(ShareDialog.java:314)
      4. com.facebook.share.widget.ShareDialog$NativeHandler.canShow(ShareDialog.java:285)
      4 frames
    5. com.facebook.internal
      FacebookDialogBase.showImpl
      1. com.facebook.internal.FacebookDialogBase.createAppCallForMode(FacebookDialogBase.java:210)
      2. com.facebook.internal.FacebookDialogBase.showImpl(FacebookDialogBase.java:150)
      2 frames
    6. com.facebook.share
      ShareDialog.show
      1. com.facebook.share.widget.ShareDialog.show(ShareDialog.java:267)
      1 frame
    7. com.myApp.app
      OverviewListItemFragment_ViewBinding$10.doClick
      1. com.myApp.app.item.overview.OverviewListItemFragment.onShareClick(OverviewListItemFragment.java:908)
      2. com.myApp.app.item.overview.OverviewListItemFragment.onClick(OverviewListItemFragment.java:841)
      3. com.myApp.app.item.overview.OverviewListItemFragment_ViewBinding$10.doClick(OverviewListItemFragment_ViewBinding.java:169)
      3 frames
    8. Butter Knife
      DebouncingOnClickListener.onClick
      1. butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
      1 frame
    9. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:4802)
      2. android.view.View$PerformClick.run(View.java:20101)
      3. android.os.Handler.handleCallback(Handler.java:810)
      4. android.os.Handler.dispatchMessage(Handler.java:99)
      5. android.os.Looper.loop(Looper.java:189)
      6. android.app.ActivityThread.main(ActivityThread.java:5529)
      6 frames
    10. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    11. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
      2 frames