java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

GitHub | MisterY | 8 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

    Unhandled Exception in Fix Duplicates function

    GitHub | 8 months ago | MisterY
    java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

      at com.money.manager.ex.utils.MyDatabaseUtils.fixDuplicates()
    2. com.money.manager
      DatabaseSettingsFragment$8.onPreferenceClick
      1. com.money.manager.ex.utils.MyDatabaseUtils.fixDuplicates(MyDatabaseUtils.java:156)
      2. com.money.manager.ex.settings.DatabaseSettingsFragment$8.onPreferenceClick(DatabaseSettingsFragment.java:370)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.preference.Preference.performClick(Preference.java:1165)
      2. android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:263)
      3. android.widget.AdapterView.performItemClick(AdapterView.java:340)
      4. android.widget.AbsListView.performItemClick(AbsListView.java:1530)
      5. android.widget.AbsListView$PerformClick.run(AbsListView.java:3698)
      6. android.widget.AbsListView$3.run(AbsListView.java:5682)
      7. android.os.Handler.handleCallback(Handler.java:739)
      8. android.os.Handler.dispatchMessage(Handler.java:95)
      9. android.os.Looper.loop(Looper.java:145)
      10. android.app.ActivityThread.main(ActivityThread.java:6917)
      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:1404)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
      2 frames