Program: 13687
Project: 13687
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.fragment_aztec_editor,container,false);
  if (getActivity() instanceof EditorFragmentActivity) {
    ((EditorFragmentActivity)getActivity()).initializeEditorFragment();
  }
  title=(AztecText)view.findViewById(R.id.title);
  content=(AztecText)view.findViewById(R.id.aztec);
  source=(SourceViewEditText)view.findViewById(R.id.source);
  title.setOnTouchListener(this);
  content.setOnTouchListener(this);
  source.setOnTouchListener(this);
  title.setOnImeBackListener(this);
  content.setOnImeBackListener(this);
  source.setOnImeBackListener(this);
  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;
  ImageButton titleBeta=(ImageButton)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(content)).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);
  if (getActivity() instanceof EditorFragmentActivity) {
    ((EditorFragmentActivity)getActivity()).initializeEditorFragment();
  }
  title=(AztecText)view.findViewById(R.id.title);
  content=(AztecText)view.findViewById(R.id.aztec);
  source=(SourceViewEditText)view.findViewById(R.id.source);
  title.setOnTouchListener(this);
  content.setOnTouchListener(this);
  source.setOnTouchListener(this);
  title.setOnImeBackListener(this);
  content.setOnImeBackListener(this);
  source.setOnImeBackListener(this);
  title.setFilters(new InputFilter[]{replaceEnterKeyWithSpaceInputFilter});
  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;
  ImageButton titleBeta=(ImageButton)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(content)).install(content);
  mEditorFragmentListener.onEditorFragmentInitialized();
  return view;
}