Android Studio Delete Items from Recycler View and List [duplicate]
问题 This question already has answers here : What is a NullPointerException, and how do I fix it? (12 answers) Closed 10 months ago . I am trying to remove a specific item when I click on it. I have run logs so I know that it's picking an item I just don't understand what the error means. If it is important I am using room database and using a recycler view. java.lang.NullPointerException: Attempt to invoke virtual method 'void uk.edu.le.co2103.myrecipebook.RecipeListAdapter.notifyItemRemoved(int