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

GitHub | tux-world | 5 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 21#244757864

    GitHub | 5 months ago | tux-world
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator java.util.ArrayList.iterator()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

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

      at com.pishguy.androidapplication.cafemaku.Libraries.SpringFloatingActionMenu.SpringFloatingActionMenu.onLayout()
    2. com.pishguy.androidapplication
      SpringFloatingActionMenu.onLayout
      1. com.pishguy.androidapplication.cafemaku.Libraries.SpringFloatingActionMenu.SpringFloatingActionMenu.onLayout(SpringFloatingActionMenu.java:237)
      1 frame
    3. Android Platform
      FrameLayout.onLayout
      1. android.view.View.layout(View.java:16722)
      2. android.view.ViewGroup.layout(ViewGroup.java:5438)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
      5. android.view.View.layout(View.java:16722)
      6. android.view.ViewGroup.layout(ViewGroup.java:5438)
      7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
      8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
      9. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
      10. android.view.View.layout(View.java:16722)
      11. android.view.ViewGroup.layout(ViewGroup.java:5438)
      12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
      13. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
      14. android.view.View.layout(View.java:16722)
      15. android.view.ViewGroup.layout(ViewGroup.java:5438)
      16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
      17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
      18. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
      19. android.view.View.layout(View.java:16722)
      20. android.view.ViewGroup.layout(ViewGroup.java:5438)
      21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
      22. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
      22 frames
    4. Android
      PhoneWindow$DecorView.onLayout
      1. com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2685)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:16722)
      2. android.view.ViewGroup.layout(ViewGroup.java:5438)
      3. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2175)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1935)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1111)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6017)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:670)
      9. android.view.Choreographer.doFrame(Choreographer.java:606)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
      11. android.os.Handler.handleCallback(Handler.java:739)
      12. android.os.Handler.dispatchMessage(Handler.java:95)
      13. android.os.Looper.loop(Looper.java:234)
      14. android.app.ActivityThread.main(ActivityThread.java:5526)
      14 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames