java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference

GitHub | BishopGIS | 6 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 edit account

    GitHub | 6 months ago | BishopGIS
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference

      at com.nextgis.maplibui.GISApplication.getAccountUrl()
    2. com.nextgis.maplibui
      NGWSettingsFragment.onCreate
      1. com.nextgis.maplibui.GISApplication.getAccountUrl(GISApplication.java:240)
      2. com.nextgis.maplibui.activity.NGWSettingsActivity.addEditAccountAction(NGWSettingsActivity.java:516)
      3. com.nextgis.maplibui.activity.NGWSettingsActivity.fillAccountPreferences(NGWSettingsActivity.java:288)
      4. com.nextgis.maplibui.fragment.NGWSettingsFragment.onCreate(NGWSettingsFragment.java:50)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Fragment.performCreate(Fragment.java:2061)
      2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:868)
      3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1072)
      4. android.app.BackStackRecord.run(BackStackRecord.java:852)
      5. android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1478)
      6. android.app.FragmentManagerImpl$1.run(FragmentManager.java:452)
      7. android.os.Handler.handleCallback(Handler.java:815)
      8. android.os.Handler.dispatchMessage(Handler.java:104)
      9. android.os.Looper.loop(Looper.java:194)
      10. android.app.ActivityThread.main(ActivityThread.java:5624)
      10 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:959)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
      2 frames