Program: 13752
Project: 13752
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.fragment_aztec_editor,container,false);
  loadingImagePlaceholder=getResources().getDrawable(R.drawable.ic_gridicons_video_camera);
  loadingImagePlaceholder.setBounds(0,0,DEFAULT_MEDIA_PLACEHOLDER_DIMENSION_DP,DEFAULT_MEDIA_PLACEHOLDER_DIMENSION_DP);
  loadingVideoPlaceholder=getResources().getDrawable(R.drawable.ic_gridicons_image);
  loadingVideoPlaceholder.setBounds(0,0,DEFAULT_MEDIA_PLACEHOLDER_DIMENSION_DP,DEFAULT_MEDIA_PLACEHOLDER_DIMENSION_DP);
  if (getActivity() instanceof EditorFragmentActivity) {
    ((EditorFragmentActivity)getActivity()).initializeEditorFragment();
  }
  mUploadingMediaProgressMax=new HashMap<>();
  mFailedMediaIds=new HashSet<>();
  title=(AztecText)view.findViewById(R.id.title);
  content=(AztecText)view.findViewById(R.id.aztec);
  source=(SourceViewEditText)view.findViewById(R.id.source);
  source.setHint("String_Node_Str" + getString(R.string.editor_content_hint) + "String_Node_Str");
  formattingToolbar=(AztecToolbar)view.findViewById(R.id.formatting_toolbar);
  formattingToolbar.setExpanded(mIsToolbarExpanded);
  title.setOnFocusChangeListener(new View.OnFocusChangeListener(){
    @Override public void onFocusChange(    View view,    boolean hasFocus){
      formattingToolbar.enableFormatButtons(!hasFocus);
    }
  }
);
  content.setOnDragListener(mOnDragListener);
  source.setOnDragListener(mOnDragListener);
  setHasOptionsMenu(true);
  invalidateOptionsHandler=new Handler();
  invalidateOptionsRunnable=new Runnable(){
    @Override public void run(){
      if (isAdded()) {
        getActivity().invalidateOptionsMenu();
      }
    }
  }
;
  content.refreshText();
  mAztecReady=true;
  AppCompatTextView titleBeta=(AppCompatTextView)view.findViewById(R.id.title_beta);
  titleBeta.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      mEditorBetaClickListener.onBetaClicked();
    }
  }
);
  Aztec.Factory.with(content,source,formattingToolbar,this).setImageGetter(aztecImageLoader).setVideoThumbnailGetter(aztecVideoLoader).setOnImeBackListener(this).setHistoryListener(this).setOnImageTappedListener(this).setOnVideoTappedListener(this).setOnMediaDeletedListener(this).addPlugin(new WordPressCommentsPlugin(content)).addPlugin(new MoreToolbarButton(content)).addPlugin(new CaptionShortcodePlugin()).addPlugin(new VideoShortcodePlugin()).addPlugin(new AudioShortcodePlugin());
  new BlockElementWatcher(content).add(new CaptionHandler()).install(content);
  mEditorFragmentListener.onEditorFragmentInitialized();
  return view;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.fragment_aztec_editor,container,false);
  loadingImagePlaceholder=getResources().getDrawable(R.drawable.ic_gridicons_image);
  loadingImagePlaceholder.setBounds(0,0,DEFAULT_MEDIA_PLACEHOLDER_DIMENSION_DP,DEFAULT_MEDIA_PLACEHOLDER_DIMENSION_DP);
  loadingVideoPlaceholder=getResources().getDrawable(R.drawable.ic_gridicons_video_camera);
  loadingVideoPlaceholder.setBounds(0,0,DEFAULT_MEDIA_PLACEHOLDER_DIMENSION_DP,DEFAULT_MEDIA_PLACEHOLDER_DIMENSION_DP);
  if (getActivity() instanceof EditorFragmentActivity) {
    ((EditorFragmentActivity)getActivity()).initializeEditorFragment();
  }
  mUploadingMediaProgressMax=new HashMap<>();
  mFailedMediaIds=new HashSet<>();
  title=(AztecText)view.findViewById(R.id.title);
  content=(AztecText)view.findViewById(R.id.aztec);
  source=(SourceViewEditText)view.findViewById(R.id.source);
  source.setHint("String_Node_Str" + getString(R.string.editor_content_hint) + "String_Node_Str");
  formattingToolbar=(AztecToolbar)view.findViewById(R.id.formatting_toolbar);
  formattingToolbar.setExpanded(mIsToolbarExpanded);
  title.setOnFocusChangeListener(new View.OnFocusChangeListener(){
    @Override public void onFocusChange(    View view,    boolean hasFocus){
      formattingToolbar.enableFormatButtons(!hasFocus);
    }
  }
);
  content.setOnDragListener(mOnDragListener);
  source.setOnDragListener(mOnDragListener);
  setHasOptionsMenu(true);
  invalidateOptionsHandler=new Handler();
  invalidateOptionsRunnable=new Runnable(){
    @Override public void run(){
      if (isAdded()) {
        getActivity().invalidateOptionsMenu();
      }
    }
  }
;
  content.refreshText();
  mAztecReady=true;
  AppCompatTextView titleBeta=(AppCompatTextView)view.findViewById(R.id.title_beta);
  titleBeta.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      mEditorBetaClickListener.onBetaClicked();
    }
  }
);
  Aztec.Factory.with(content,source,formattingToolbar,this).setImageGetter(aztecImageLoader).setVideoThumbnailGetter(aztecVideoLoader).setOnImeBackListener(this).setHistoryListener(this).setOnImageTappedListener(this).setOnVideoTappedListener(this).setOnMediaDeletedListener(this).addPlugin(new WordPressCommentsPlugin(content)).addPlugin(new MoreToolbarButton(content)).addPlugin(new CaptionShortcodePlugin()).addPlugin(new VideoShortcodePlugin()).addPlugin(new AudioShortcodePlugin());
  new BlockElementWatcher(content).add(new CaptionHandler()).install(content);
  mEditorFragmentListener.onEditorFragmentInitialized();
  return view;
}