java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.Set.iterator()' on a null object reference

Stack Overflow | frogleaf | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    getStringSet() returning null , despite setting default preferences

    Stack Overflow | 7 months ago | frogleaf
    java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.Set.iterator()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'java.util.Iterator java.util.Set.iterator()' on a null object reference

      at com.geolore.flagquiz.MainActivityFragment.resetQuiz()
    2. com.geolore.flagquiz
      MainActivity.onStart
      1. com.geolore.flagquiz.MainActivityFragment.resetQuiz(MainActivityFragment.java:137)
      2. com.geolore.flagquiz.MainActivity.onStart(MainActivity.java:67)
      2 frames
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1259)
      2. android.app.Activity.performStart(Activity.java:6026)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
      3 frames