java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)' on a null object reference

GitHub | aeris | 2 months ago
  1. 0

    Crash on usage

    GitHub | 2 months ago | aeris
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)' on a null object reference
  2. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)' on a null object reference

    GitHub | 6 months ago | dmsherazi
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)' on a null object reference
  3. 0

    GitHub comment 148#217453056

    GitHub | 7 months ago | craftyguy
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Attempt to invoke virtual method java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence) on a null object reference

    GitHub | 1 year ago | SferaDev
    java.lang.NullPointerException: Attempt to invoke virtual method java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence) on a null object reference
  6. 0

    revokeAccessToken causes a NPE with the following stack trace

    GitHub | 4 months ago | manrock007
    java.lang.RuntimeException: An error occurred while executing doInBackground()

    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 'java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)' on a null object reference

      at openfoodfacts.github.scrachx.openfood.fragments.IngredientsProductFragment.cleanAllergensMultipleOccurence()
    2. openfoodfacts.github.scrachx
      IngredientsProductFragment.onViewCreated
      1. openfoodfacts.github.scrachx.openfood.fragments.IngredientsProductFragment.cleanAllergensMultipleOccurence(IngredientsProductFragment.java:161)
      2. openfoodfacts.github.scrachx.openfood.fragments.IngredientsProductFragment.cleanAllergensString(IngredientsProductFragment.java:178)
      3. openfoodfacts.github.scrachx.openfood.fragments.IngredientsProductFragment.onViewCreated(IngredientsProductFragment.java:59)
      3 frames
    3. Android Support v4
      ViewPager.onMeasure
      1. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1127)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)
      3. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801)
      4. android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1638)
      5. android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:679)
      6. android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(FragmentStatePagerAdapter.java:166)
      7. android.support.v4.view.ViewPager.populate(ViewPager.java:1240)
      8. android.support.v4.view.ViewPager.populate(ViewPager.java:1088)
      9. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1614)
      9 frames
    4. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:17562)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      6. android.view.View.measure(View.java:17562)
      7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
      8. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
      8 frames
    5. Android v7
      ContentFrameLayout.onMeasure
      1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
      1 frame
    6. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:17562)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      6. android.view.View.measure(View.java:17562)
      7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
      8. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
      9. android.view.View.measure(View.java:17562)
      10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
      11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      12. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      13. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      14. android.view.View.measure(View.java:17562)
      15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5536)
      16. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
      16 frames
    7. Android
      PhoneWindow$DecorView.onMeasure
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2871)
      1 frame
    8. Android Platform
      Looper.loop
      1. android.view.View.measure(View.java:17562)
      2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2015)
      3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1173)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1379)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5891)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:580)
      9. android.view.Choreographer.doFrame(Choreographer.java:550)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
      11. android.os.Handler.handleCallback(Handler.java:739)
      12. android.os.Handler.dispatchMessage(Handler.java:95)
      13. android.os.Looper.loop(Looper.java:135)
      13 frames