Buggy code:
public class BrowseFragment extends Fragment { private ListView browseListView ; private BrowseFragment . BrowseAdapter listAdapter ; private List < BrowseFragment . RecipeListData > recipeList = new ArrayList < BrowseFragment . RecipeListData > ( ) ; private Bundle args ; private RelativeLayout llLayout ; private TextView browseText ; @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } public interface OnFragmentInteractionListener { public void showDrawerToggle ( boolean showDrawerToggle ) { } } private BrowseFragment . OnFragmentInteractionListener mListener ; @ Override public void onAttach ( Activity activity ) { } @ Override public void onPrepareOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } class RequestBrowseTask extends AsyncTask < String , String , String > { private ProgressDialog dialog ; private boolean ShowOnlyPublished ; public RequestBrowseTask ( boolean aShowOnlyPublished ) { } @ Override protected void onPreExecute ( ) { } @ Override protected String doInBackground ( String ... uri ) { HttpClient httpclient = new DefaultHttpClient ( ) ; HttpResponse response ; String responseString = null ; try { response = httpclient . execute ( new HttpGet ( uri [ 0 ] ) ) ; StatusLine statusLine = response . getStatusLine ( ) ; if ( ( statusLine . getStatusCode ( ) ) == ( HttpStatus . SC_OK ) ) { ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; response . getEntity ( ) . writeTo ( out ) ; out . close ( ) ; responseString = out . toString ( ) ; } else { response . getEntity ( ) . getContent ( ) . close ( ) ; throw new IOException ( statusLine . getReasonPhrase ( ) ) ; } } catch ( IOException e ) { } return responseString ; } @ Override protected void onPostExecute ( String result ) { } } class DeleteRequestTask extends AsyncTask < String , String , String > { private ProgressDialog dialog ; @ Override protected void onPreExecute ( ) { } @ Override protected String doInBackground ( String ... uri ) { HttpClient httpclient = new DefaultHttpClient ( ) ; HttpResponse response ; String responseString = null ; HttpDelete delete = null ; try { delete = new HttpDelete ( uri [ 0 ] ) ; String strValue = ( ( SaveSharedPreference . getUsername ( RecipeBookApplication . getAppContext ( ) ) ) + ":" ) + ( SaveSharedPreference . getPassword ( RecipeBookApplication . getAppContext ( ) ) ) ; String basicAuth = "Basic<seq2seq4repair_space>" + ( Base64 . encodeToString ( strValue . getBytes ( ) , NO_WRAP ) ) ; delete . setHeader ( "Authorization" , basicAuth ) ; delete . setHeader ( "Accept" , "application//json" ) ; delete . setHeader ( "Content-type" , "application//json" ) ; response = httpclient . execute ( delete ) ; StatusLine statusLine = response . getStatusLine ( ) ; if ( ( statusLine . getStatusCode ( ) ) == ( HttpStatus . SC_OK ) ) { ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; response . getEntity ( ) . writeTo ( out ) ; out . close ( ) ; responseString = out . toString ( ) ; } else { response . getEntity ( ) . getContent ( ) . close ( ) ; throw new IOException ( statusLine . getReasonPhrase ( ) ) ; } } catch ( IOException e ) { System . out . println ( e . toString ( ) ) ; } return responseString ; } @ Override protected void onPostExecute ( String result ) { } } private class DownloadImageTask extends AsyncTask < String , Void , Bitmap > { BrowseFragment . RecipeListData recipeListData ; String imageUrl ; int count ; public DownloadImageTask ( int count , BrowseFragment . RecipeListData d ) { } protected Bitmap doInBackground ( String ... urls ) { imageUrl = urls [ 0 ] ; Bitmap imageBmp = null ; try { InputStream in = new URL ( imageUrl ) . openStream ( ) ; <START_BUG> imageBmp = BitmapFactory . decodeStream ( in ) ; <END_BUG> } catch ( MalformedURLException e ) { try { File file = new File ( imageUrl ) ; FileInputStream fileInputStream = new FileInputStream ( file ) ; imageBmp = BitmapFactory . decodeStream ( fileInputStream ) ; } catch ( FileNotFoundException f ) { System . out . println ( ( "File<seq2seq4repair_space>not<seq2seq4repair_space>found:" + ( f . toString ( ) ) ) ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } return imageBmp ; } protected void onPostExecute ( Bitmap result ) { } } public class SquareImageView extends ImageView { public SquareImageView ( Context context ) { } public SquareImageView ( Context context , AttributeSet attrs ) { } public SquareImageView ( Context context , AttributeSet attrs , int defStyle ) { } @ Override protected void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { } @ Override protected void onSizeChanged ( int w , int h , int oldw , int oldh ) { } } public class BrowseAdapter extends ArrayAdapter < BrowseFragment . RecipeListData > { private final Context context ; private final List < BrowseFragment . RecipeListData > data ; private final int layoutResourceId ; private int lastPosition = - 1 ; private Animation animation1 ; private Animation animation2 ; public BrowseAdapter ( Context context , int layoutResourceId , List < BrowseFragment . RecipeListData > data ) { } private class ViewHolder { ImageView image ; TextView titleText ; TextView draftText ; TextView userText ; TextView servesText ; TextView prepText ; TextView cookText ; } @ Override public View getView ( int position , View convertView , ViewGroup parent ) { } } public class CharacterDrawable extends ColorDrawable { private final char character ; private final Paint textPaint ; private final Paint borderPaint ; private static final int STROKE_WIDTH = 10 ; private static final float SHADE_FACTOR = 0.9F ;

Fix:
imageBmp = FileUtils . decodeFile ( in , imageUrl ) ;