NullPointerException in RadioGroup.setOnCheckedChangeListener in APIS 15 & 16
问题 Actually, I've to ask you a question about NPE in setOnCheckedChangeListener of RadioGroup. I've tested this code in APIs from 15 to 23, and only crashes is APIs 15 & 16. At first, i dont need to solve the NPE, i did it. I need to know why android assigns a negative value to radioButton ID, which causes NULL return in 'group.findViewById'. Here we've the code: private List<Question> listItems; private Question getItem(int position) { return listItems.get(position); } @Override public