if(getActivity()!=null){
outerTestSeriesAdapter = new OuterTestSeriesAdapter(QuizUtils.filterQuizzes(response),getActivity());
}
If I don’t do null check, the app crashes saying value is null. But when I do null check as I’m showing in the example, how is the code inside it being executed because previously it was null. This time also it should be null and the code must not be executed. Please explain it.