java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference at com.example.turappprosjekt2021gruppe8.Adapter.TripAdapter.onBindViewHolder(TripAdapter.java:76)

Example: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Null pointer try to say that the textview is null. That can happen beacause the findviewbyid is not matching with the right one on your xml. 
Be sure your id matches on your xml and java file

Tags:

Java Example