Error in my Fragment: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference [duplicate]
问题 This question already has answers here : What is a NullPointerException, and how do I fix it? (12 answers) Closed 2 years ago . I try to create a ListView which showes my Pojos called "Baustelle". I wrote a Adapter and a ViewHolder as I learned it in school but the difference is that we only did it for the MainActivity in my school. Now i tried to use a Fragment for it but I always get this Error: "Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a