java.lang.NullPointerException: Attempt to invoke virtual method 'boolean net.osmand.osm.PoiType.isNotEditableOsm()' on a null object reference

GitHub | Boothy99 | 6 months ago
  1. 0

    GitHub comment 2831#234687415

    GitHub | 6 months ago | Boothy99
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean net.osmand.osm.PoiType.isNotEditableOsm()' on a null object reference
  2. 0
    The resource was accessed after it was dismissed.
  3. 0
    The parsed JSON does not contains the requested field.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Initialize the variable before calling a method on it.
  6. 0
    Use 'dialog' to access views from custom_layout layout.

    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 'boolean net.osmand.osm.PoiType.isNotEditableOsm()' on a null object reference

      at net.osmand.plus.osmedit.OsmEditingPlugin.registerMapContextMenuActions()
    2. net.osmand.plus
      MapContextMenuFragment$11.onClick
      1. net.osmand.plus.osmedit.OsmEditingPlugin.registerMapContextMenuActions(OsmEditingPlugin.java:204)
      2. net.osmand.plus.OsmandPlugin.registerMapContextMenu(OsmandPlugin.java:386)
      3. net.osmand.plus.activities.MapActivityActions.contextMenuPoint(MapActivityActions.java:284)
      4. net.osmand.plus.mapcontextmenu.MapContextMenu.buttonMorePressed(MapContextMenu.java:582)
      5. net.osmand.plus.mapcontextmenu.MapContextMenuFragment$11.onClick(MapContextMenuFragment.java:442)
      5 frames
    3. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:4785)
      2. android.view.View$PerformClick.run(View.java:19858)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:155)
      6. android.app.ActivityThread.main(ActivityThread.java:5696)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
      2 frames