java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextgis.mobile/com.nextgis.maplibui.activity.VectorLayerSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Map com.nextgis.maplib.display.FieldStyleRule.getStyleRules()' on a null object reference

GitHub | BishopGIS | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Crash in layer properties

    GitHub | 5 months ago | BishopGIS
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextgis.mobile/com.nextgis.maplibui.activity.VectorLayerSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Map com.nextgis.maplib.display.FieldStyleRule.getStyleRules()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.util.Map com.nextgis.maplib.display.FieldStyleRule.getStyleRules()' on a null object reference

      at com.nextgis.maplibui.display.RuleFeatureRendererUI$RuleStyleFragment.onCreateView()
    2. com.nextgis.maplibui
      RuleFeatureRendererUI$RuleStyleFragment.onCreateView
      1. com.nextgis.maplibui.display.RuleFeatureRendererUI$RuleStyleFragment.onCreateView(RuleFeatureRendererUI.java:119)
      1 frame
    3. Android Support v4
      FragmentActivity.onStart
      1. android.support.v4.app.Fragment.performCreateView(Fragment.java:2074)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1286)
      4. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1268)
      5. android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2143)
      6. android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201)
      7. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:615)
      7 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1266)
      2. android.app.Activity.performStart(Activity.java:6943)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3276)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
      5. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5472)
      6. android.app.ActivityThread.access$1200(ActivityThread.java:229)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1827)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:148)
      10. android.app.ActivityThread.main(ActivityThread.java:7325)
      10 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:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames