java.lang.NullPointerException

Attempt to invoke virtual method 'java.lang.Object android.widget.ListView.getItemAtPosition(int)' on a null object reference

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

Stack trace

  • java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.widget.ListView.getItemAtPosition(int)' on a null object reference at android.com.myapp.DrawerItemClickListener.onItemClick(DrawerItemClickListener.java:22)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

No Bugmate found.