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

GitHub | Mygod | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 839#242922546

    GitHub | 6 months ago | Mygod
    java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

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

      at scala.collection.convert.Wrappers$JListWrapper.iterator()
    2. Scala
      AbstractTraversable.mkString
      1. scala.collection.convert.Wrappers$JListWrapper.iterator(Wrappers.scala:88)
      2. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      3. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      4. scala.collection.TraversableOnce$class.addString(TraversableOnce.scala:357)
      5. scala.collection.AbstractTraversable.addString(Traversable.scala:104)
      6. scala.collection.TraversableOnce$class.mkString(TraversableOnce.scala:323)
      7. scala.collection.AbstractTraversable.mkString(Traversable.scala:104)
      8. scala.collection.TraversableOnce$class.mkString(TraversableOnce.scala:325)
      9. scala.collection.AbstractTraversable.mkString(Traversable.scala:104)
      9 frames
    3. com.github.shadowsocks
      ShadowsocksSettings$$anonfun$17.onPreferenceChange
      1. com.github.shadowsocks.utils.TcpFastOpen$.enabled(TcpFastOpen.scala:49)
      2. com.github.shadowsocks.ShadowsocksSettings.com$github$shadowsocks$ShadowsocksSettings$$onPreferenceChange$body$16(ShadowsocksSettings.scala:162)
      3. com.github.shadowsocks.ShadowsocksSettings$$anonfun$17.onPreferenceChange(ShadowsocksSettings.scala:160)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.preference.Preference.callChangeListener(Preference.java:939)
      2. android.preference.TwoStatePreference.onClick(TwoStatePreference.java:65)
      3. android.preference.Preference.performClick(Preference.java:994)
      4. android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214)
      5. android.widget.AdapterView.performItemClick(AdapterView.java:310)
      6. android.widget.AbsListView.performItemClick(AbsListView.java:1155)
      7. android.widget.AbsListView$PerformClick.run(AbsListView.java:3126)
      8. android.widget.AbsListView$3.run(AbsListView.java:4041)
      9. android.os.Handler.handleCallback(Handler.java:751)
      10. android.os.Handler.dispatchMessage(Handler.java:95)
      11. android.os.Looper.loop(Looper.java:154)
      12. android.app.ActivityThread.main(ActivityThread.java:6077)
      12 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
      2 frames