java.lang.NullPointerException: Attempt to invoke virtual method 'com.nextgis.maplib.display.Style com.nextgis.maplib.display.SimpleFeatureRenderer.getStyle()' on a null object reference

GitHub | BishopGIS | 4 months ago
  1. 0

    Crash on list view

    GitHub | 4 months ago | BishopGIS
    java.lang.NullPointerException: Attempt to invoke virtual method 'com.nextgis.maplib.display.Style com.nextgis.maplib.display.SimpleFeatureRenderer.getStyle()' on a null object reference
  2. 0
    The resource was accessed after it was dismissed.
  3. 0
    Initialize the variable before calling a method on it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Use 'dialog' to access views from custom_layout layout.
  6. 0
    The parsed JSON does not contains the requested field.

    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 'com.nextgis.maplib.display.Style com.nextgis.maplib.display.SimpleFeatureRenderer.getStyle()' on a null object reference

      at com.nextgis.maplibui.mapui.VectorLayerUI.getIcon()
    2. com.nextgis.maplibui
      LayersListAdapter.getView
      1. com.nextgis.maplibui.mapui.VectorLayerUI.getIcon(VectorLayerUI.java:74)
      2. com.nextgis.maplibui.fragment.LayersListAdapter.getStandardLayerView(LayersListAdapter.java:192)
      3. com.nextgis.maplibui.fragment.LayersListAdapter.getView(LayersListAdapter.java:166)
      3 frames
    3. Android Platform
      ViewGroup.layout
      1. android.widget.AbsListView.obtainView(AbsListView.java:2467)
      2. android.widget.ListView.makeAndAddView(ListView.java:1894)
      3. android.widget.ListView.fillDown(ListView.java:710)
      4. android.widget.ListView.fillFromTop(ListView.java:771)
      5. android.widget.ListView.layoutChildren(ListView.java:1695)
      6. android.widget.AbsListView.onLayout(AbsListView.java:2230)
      7. android.view.View.layout(View.java:16001)
      8. android.view.ViewGroup.layout(ViewGroup.java:5181)
      9. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1959)
      10. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1813)
      11. android.widget.LinearLayout.onLayout(LinearLayout.java:1722)
      12. android.view.View.layout(View.java:16001)
      13. android.view.ViewGroup.layout(ViewGroup.java:5181)
      13 frames
    4. Android Support v4
      DrawerLayout.onLayout
      1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1215)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:16001)
      2. android.view.ViewGroup.layout(ViewGroup.java:5181)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:639)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:574)
      5. android.view.View.layout(View.java:16001)
      6. android.view.ViewGroup.layout(ViewGroup.java:5181)
      7. android.widget.FrameLayout.layoutChildren(FrameLayout.java:639)
      8. android.widget.FrameLayout.onLayout(FrameLayout.java:574)
      9. android.view.View.layout(View.java:16001)
      10. android.view.ViewGroup.layout(ViewGroup.java:5181)
      11. android.widget.FrameLayout.layoutChildren(FrameLayout.java:639)
      12. android.widget.FrameLayout.onLayout(FrameLayout.java:574)
      13. android.view.View.layout(View.java:16001)
      14. android.view.ViewGroup.layout(ViewGroup.java:5181)
      15. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1959)
      16. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1813)
      17. android.widget.LinearLayout.onLayout(LinearLayout.java:1722)
      18. android.view.View.layout(View.java:16001)
      19. android.view.ViewGroup.layout(ViewGroup.java:5181)
      20. android.widget.FrameLayout.layoutChildren(FrameLayout.java:639)
      21. android.widget.FrameLayout.onLayout(FrameLayout.java:574)
      22. android.view.View.layout(View.java:16001)
      23. android.view.ViewGroup.layout(ViewGroup.java:5181)
      24. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2484)
      25. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2181)
      26. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1293)
      27. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6599)
      28. android.view.Choreographer$CallbackRecord.run(Choreographer.java:800)
      29. android.view.Choreographer.doCallbacks(Choreographer.java:603)
      30. android.view.Choreographer.doFrame(Choreographer.java:572)
      31. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786)
      32. android.os.Handler.handleCallback(Handler.java:815)
      33. android.os.Handler.dispatchMessage(Handler.java:104)
      34. android.os.Looper.loop(Looper.java:194)
      35. android.app.ActivityThread.main(ActivityThread.java:5637)
      35 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
      2 frames