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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4

  • via GitHub by itchix
    ,
  • via GitHub by itchix
    ,
  • via GitHub by aeris
    ,
  • Stack trace

    • 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.cleanAllergensMultipleOccurrences(IngredientsProductFragment.java:163) at openfoodfacts.github.scrachx.openfood.fragments.IngredientsProductFragment.cleanAllergensString(IngredientsProductFragment.java:184) at openfoodfacts.github.scrachx.openfood.fragments.IngredientsProductFragment.onViewCreated(IngredientsProductFragment.java:66)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.