Buggy code:
public class EditorFragment extends EditorFragmentAbstract implements View . OnClickListener , View . OnTouchListener , OnImeBackListener , OnJsEditorStateChangedListener { private static final String ARG_PARAM_TITLE = "param_title" ; private static final String ARG_PARAM_CONTENT = "param_content" ; private static final String JS_CALLBACK_HANDLER = "nativeCallbackHandler" ; private static final String TAG_FORMAT_BAR_BUTTON_MEDIA = "media" ; private static final String TAG_FORMAT_BAR_BUTTON_LINK = "link" ; private static final float TOOLBAR_ALPHA_ENABLED = 1 ; private static final float TOOLBAR_ALPHA_DISABLED = 0.5F ; private String mTitle = "" ; private String mContentHtml = "" ; private EditorWebViewAbstract mWebView ; private View mSourceView ; private SourceViewEditText mSourceViewTitle ; private SourceViewEditText mSourceViewContent ; private String mTitlePlaceholder = "" ; private String mContentPlaceholder = "" ; private boolean mHideActionBarOnSoftKeyboardUp ; private CountDownLatch mGetTitleCountDownLatch ; private CountDownLatch mGetContentCountDownLatch ; private final Map < String , ToggleButton > mTagToggleButtonMap = new HashMap < > ( ) ; public static EditorFragment newInstance ( String title , String content ) { } public EditorFragment ( ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onDetach ( ) { } private ActionBar getActionBar ( ) { } @ Override public void onConfigurationChanged ( Configuration newConfig ) { } protected void initJsEditor ( ) { } @ Override public void onClick ( View v ) { } @ Override public boolean onTouch ( View view , MotionEvent event ) { } @ Override public void onImeBack ( ) { } @ SuppressLint ( "NewApi" ) private void enableWebDebugging ( boolean enable ) { } @ Override public void setTitle ( CharSequence text ) { } @ Override public void setContent ( CharSequence text ) { } @ Override public CharSequence getTitle ( ) { } @ Override public CharSequence getContent ( ) { } @ Override public void appendMediaFile ( MediaFile mediaFile , String imageUrl , ImageLoader imageLoader ) { } @ Override public void appendGallery ( MediaGallery mediaGallery ) { } @ Override public Spanned getSpannedContent ( ) { } @ Override public void setTitlePlaceholder ( CharSequence placeholderText ) { } @ Override public void setContentPlaceholder ( CharSequence placeholderText ) { } public void onDomLoaded ( ) { } public void onSelectionStyleChanged ( final Map < String , Boolean > changeMap ) { } public void onSelectionChanged ( final Map < String , String > selectionArgs ) { } public void onGetHtmlResponse ( Map < String , String > inputArgs ) { } private void updateVisualEditorFields ( ) { <START_BUG> mWebView . execJavaScriptFromString ( ( ( "ZSSEditor.getField('zss_field_title').setHTML('" + ( Utils . escapeHtml ( mTitle ) ) ) + "');" ) ) ; <END_BUG> mWebView . execJavaScriptFromString ( ( ( "ZSSEditor.getField('zss_field_content').setHTML('" + ( Utils . escapeHtml ( mContentHtml ) ) ) + "');" ) ) ; } void updateFormatBarEnabledState ( boolean enabled ) { } private void clearFormatBarButtons ( ) { } private void onFormattingButtonClicked ( ToggleButton toggleButton ) { } private void applyFormattingHtmlMode ( ToggleButton toggleButton , String tag ) { } }

Fix:
mWebView . execJavaScriptFromString ( ( ( "ZSSEditor.getField('zss_field_title').setPlainText('" + ( Utils . escapeHtml ( mTitle ) ) ) + "');" ) ) ;