java.lang.NullPointerException on setOnClickListener in Fragment
问题 I'm pretty new to Android and I'm trying to create an application that will score matches of the Vex Robotics Competition. I have a ViewPager with fragments for each team and i have a lot of buttons that increase and decrease numbers in EditTexts . I created an OnClickListener for each one. This code was working before I introduced SharedPreferences to carry values to the activity that calculates the score. Fragment Code (sorry, there's a lot of it): package com.bearsandthings