Program: 187191
Project: 187191
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.fragment_add_clips_page,null);
  try {
    ImageView iv=(ImageView)view.findViewById(R.id.clipTypeImage);
    if (mMedia != null) {
      Bitmap thumb=mActivity.getThumbnail(mMedia);
      iv.setImageBitmap(thumb);
    }
 else {
      if (clip.mShotType != -1) {
        TypedArray drawableIds=getActivity().getResources().obtainTypedArray(R.array.cliptype_thumbnails);
        int drawableId=drawableIds.getResourceId(clip.mShotType,0);
        iv.setImageResource(drawableId);
      }
 else       if (clip.mArtwork != null) {
        iv.setImageBitmap(BitmapFactory.decodeStream(getActivity().getAssets().open(clip.mArtwork)));
      }
    }
    ((TextView)view.findViewById(R.id.clipTypeTitle)).setText(clip.mTitle);
    if (clip.mShotSize != null)     ((TextView)view.findViewById(R.id.clipTypeShotSize)).setText(clip.mShotSize);
 else     ((TextView)view.findViewById(R.id.clipTypeShotSize)).setVisibility(View.GONE);
    ((TextView)view.findViewById(R.id.clipTypeGoal)).setText(clip.mGoal);
    ((TextView)view.findViewById(R.id.clipTypeDescription)).setText(clip.mDescription);
    ((TextView)view.findViewById(R.id.clipTypeTip)).setText(clip.mTip);
    iv.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        ((SceneEditorActivity)mActivity).openCaptureMode(clip.mShotType,mClipIndex);
      }
    }
);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return view;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.fragment_add_clips_page,null);
  try {
    ImageView iv=(ImageView)view.findViewById(R.id.clipTypeImage);
    if (mMedia != null) {
      Bitmap thumb=Media.getThumbnail(mActivity,mMedia,mActivity.mMPM.mProject);
      iv.setImageBitmap(thumb);
    }
 else {
      if (clip.mShotType != -1) {
        TypedArray drawableIds=getActivity().getResources().obtainTypedArray(R.array.cliptype_thumbnails);
        int drawableId=drawableIds.getResourceId(clip.mShotType,0);
        iv.setImageResource(drawableId);
      }
 else       if (clip.mArtwork != null) {
        iv.setImageBitmap(BitmapFactory.decodeStream(getActivity().getAssets().open(clip.mArtwork)));
      }
    }
    ((TextView)view.findViewById(R.id.clipTypeTitle)).setText(clip.mTitle);
    if (clip.mShotSize != null)     ((TextView)view.findViewById(R.id.clipTypeShotSize)).setText(clip.mShotSize);
 else     ((TextView)view.findViewById(R.id.clipTypeShotSize)).setVisibility(View.GONE);
    ((TextView)view.findViewById(R.id.clipTypeGoal)).setText(clip.mGoal);
    ((TextView)view.findViewById(R.id.clipTypeDescription)).setText(clip.mDescription);
    ((TextView)view.findViewById(R.id.clipTypeTip)).setText(clip.mTip);
    iv.setOnClickListener(new OnClickListener(){
      @Override public void onClick(      View v){
        ((SceneEditorActivity)mActivity).openCaptureMode(clip.mShotType,mClipIndex);
      }
    }
);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return view;
}