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

GitHub | tobiasKaminsky | 4 months ago
  1. 0

    NPE in current Version

    GitHub | 4 months ago | tobiasKaminsky
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getName()' on a null object reference
  2. 0

    Samsung Galaxy J5 not saving or reading images

    Stack Overflow | 7 months ago | Amira Elsayed Ismail
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getName()' on a null object reference
  3. 0

    NPE and InvocationTargetException error

    Stack Overflow | 2 years ago | user2883071
    java.lang.IllegalStateException: Could not execute method of the activity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Saving to Local Database and Firebase in android

    Stack Overflow | 3 days ago | Pooveshin
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.example.pooveshin.saica_sgb.DatabaseHelper.SaveUserMeetings(java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference
  6. 0

    Trying to enter data in Sqlite

    Stack Overflow | 10 months ago | Sanan Durani
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.example.ks.doit.sqlite_database.insertStudentData(java.lang.String, java.lang.String, java.lang.String)' on a null object reference

    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 'java.lang.String java.io.File.getName()' on a null object reference

      at com.owncloud.android.ui.adapter.LocalFileListAdapter.getView()
    2. com.owncloud.android
      LocalFileListAdapter.getView
      1. com.owncloud.android.ui.adapter.LocalFileListAdapter.getView(LocalFileListAdapter.java:113)
      1 frame
    3. Android Platform
      ViewGroup.layout
      1. android.widget.AbsListView.obtainView(AbsListView.java:2347)
      2. android.widget.ListView.makeAndAddView(ListView.java:1864)
      3. android.widget.ListView.fillSpecific(ListView.java:1344)
      4. android.widget.ListView.layoutChildren(ListView.java:1651)
      5. android.widget.AbsListView.onLayout(AbsListView.java:2151)
      6. android.view.View.layout(View.java:15689)
      7. android.view.ViewGroup.layout(ViewGroup.java:5040)
      7 frames
    4. Android Support v4
      SwipeRefreshLayout.onLayout
      1. android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:596)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:15689)
      2. android.view.ViewGroup.layout(ViewGroup.java:5040)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      5. android.view.View.layout(View.java:15689)
      6. android.view.ViewGroup.layout(ViewGroup.java:5040)
      7. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
      8. android.view.View.layout(View.java:15689)
      9. android.view.ViewGroup.layout(ViewGroup.java:5040)
      10. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      11. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      12. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      13. android.view.View.layout(View.java:15689)
      14. android.view.ViewGroup.layout(ViewGroup.java:5040)
      15. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      16. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      17. android.view.View.layout(View.java:15689)
      18. android.view.ViewGroup.layout(ViewGroup.java:5040)
      19. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      20. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      21. android.view.View.layout(View.java:15689)
      22. android.view.ViewGroup.layout(ViewGroup.java:5040)
      23. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      24. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      25. android.view.View.layout(View.java:15689)
      26. android.view.ViewGroup.layout(ViewGroup.java:5040)
      27. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      28. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      29. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      30. android.view.View.layout(View.java:15689)
      31. android.view.ViewGroup.layout(ViewGroup.java:5040)
      32. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      33. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      34. android.view.View.layout(View.java:15689)
      35. android.view.ViewGroup.layout(ViewGroup.java:5040)
      36. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2116)
      37. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1873)
      38. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1084)
      39. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5990)
      40. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
      41. android.view.Choreographer.doCallbacks(Choreographer.java:580)
      42. android.view.Choreographer.doFrame(Choreographer.java:550)
      43. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
      44. android.os.Handler.handleCallback(Handler.java:739)
      45. android.os.Handler.dispatchMessage(Handler.java:95)
      46. android.os.Looper.loop(Looper.java:135)
      47. android.app.ActivityThread.main(ActivityThread.java:5343)
      47 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
      2 frames