java.lang.ClassCastException: com.nextgis.maplib.map.NGWLookupTable cannot be cast to com.nextgis.maplib.map.Layer

GitHub | BishopGIS | 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

    Crash on delete layer with lookup table

    GitHub | 7 months ago | BishopGIS
    java.lang.ClassCastException: com.nextgis.maplib.map.NGWLookupTable cannot be cast to com.nextgis.maplib.map.Layer

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.nextgis.maplib.map.NGWLookupTable cannot be cast to com.nextgis.maplib.map.Layer

      at com.nextgis.maplibui.activity.NGWSettingsActivity.deleteAccountLayers()
    2. com.nextgis.maplibui
      NGWSettingsActivity$5.onClick
      1. com.nextgis.maplibui.activity.NGWSettingsActivity.deleteAccountLayers(NGWSettingsActivity.java:679)
      2. com.nextgis.maplibui.activity.NGWSettingsActivity$4.onReceive(NGWSettingsActivity.java:590)
      3. com.nextgis.maplibui.activity.NGWSettingsActivity$5.onClick(NGWSettingsActivity.java:638)
      3 frames
    3. Android
      AlertController$ButtonHandler.handleMessage
      1. com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:111)
      2. android.os.Looper.loop(Looper.java:194)
      3. android.app.ActivityThread.main(ActivityThread.java:5624)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. 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