Buggy code:
public class BaseFragment extends Fragment { private static ArrayList < Structure > listAll = new ArrayList < > ( ) ; public static ArrayList < Structure > listFavorite = new ArrayList < > ( ) ; private static ListView listView ; protected UiLifecycleHelper uiHelper ; private Session activeSession = Session . getActiveSession ( ) ; private static final String TAG = "Facebook" ; private StatusCallback callback ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onResume ( ) { } @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public void onPause ( ) { } @ Override public void onDestroy ( ) { } @ Override public void onSaveInstanceState ( Bundle outState ) { } public boolean isTable ( ) { } private void onSessionStateChange ( Session session , SessionState state , Exception exception ) { } public String getTitle ( int id ) { } public String getDescription ( int id ) { } public String getPicture ( int id ) { } public String getUploaded ( int id ) { } public String getVideo ( int id ) { } public String getTitleF ( int id ) { } public String getDescriptionF ( int id ) { } public String getPictureF ( int id ) { } public String getUploadedF ( int id ) { } public String getVideoF ( int id ) { } public static class GetData extends AsyncTask < Void , Void , Void > { private Context context ; public JSONArray video = null ; private static int count = 0 ; private ProgressBar progressBar ; public GetData ( Context context , ListView lw , ProgressBar progressBar ) { } @ Override protected Void doInBackground ( Void ... arg0 ) { ServiceHandler sh = new ServiceHandler ( ) ; String jsonStr = sh . makeServiceCall ( url , GET ) ; if ( jsonStr != null ) { try { JSONObject jsonObj = new JSONObject ( jsonStr ) ; JSONObject data = jsonObj . getJSONObject ( "data" ) ; video = data . getJSONArray ( "items" ) ; BaseFragment . listAll . clear ( ) ; BaseFragment . GetData . count = 0 ; for ( int i = 0 ; i < ( video . length ( ) ) ; i ++ ) { JSONObject items = video . getJSONObject ( i ) ; String title = items . getString ( "title" ) ; String uploaded = items . getString ( "uploaded" ) ; String description = items . getString ( "description" ) ; JSONObject thumbnail = items . getJSONObject ( "thumbnail" ) ; JSONObject content = items . getJSONObject ( "player" ) ; String video = content . getString ( "mobile" ) ; <START_BUG> String picture = thumbnail . getString ( "sqDefault" ) ; <END_BUG> Structure structure = new Structure ( title , picture , video , uploaded , description ) ; BaseFragment . listAll . add ( structure ) ; ( BaseFragment . GetData . count ) ++ ; } } catch ( JSONException e ) { e . printStackTrace ( ) ; } } else { Log . e ( "ServiceHandler" , "Couldn't<seq2seq4repair_space>get<seq2seq4repair_space>any<seq2seq4repair_space>data<seq2seq4repair_space>from<seq2seq4repair_space>the<seq2seq4repair_space>url" ) ; Toast . makeText ( context , "Немає<seq2seq4repair_space>інету,<seq2seq4repair_space>братіш<seq2seq4repair_space>провірь<seq2seq4repair_space>підключення!" , LENGTH_LONG ) ; } return null ; } @ Override protected void onPreExecute ( ) { } @ Override protected void onPostExecute ( Void aVoid ) { } public int getCount ( ) { } public String getLastNews ( ) { } } public static class GetData2 extends AsyncTask < DB , Void , Void > { private Context context ; private ProgressBar progressBar ; public GetData2 ( Context context , ListView lw , ProgressBar progressBar ) { } @ Override protected Void doInBackground ( DB ... params ) { } @ Override protected void onPreExecute ( ) { } @ Override protected void onPostExecute ( Void aVoid ) { } } No newline ; at end ; of file ; }

Fix:
String picture = thumbnail . getString ( "hqDefault" ) ;