Buggy code:
public class ThreadDetailFragment extends Fragment implements PostAsyncTask . PostListener { public static final String ARG_TID_KEY = "tid" ; public static final String ARG_PID_KEY = "pid" ; public static final String ARG_TITLE_KEY = "title" ; public static final String ARG_FLOOR_KEY = "floor" ; public static final String ARG_PAGE_KEY = "page" ; public static final int LAST_FLOOR = Integer . MIN_VALUE ; public static final int LAST_PAGE = Integer . MIN_VALUE ; private final String LOG_TAG = getClass ( ) . getSimpleName ( ) ; private Context mCtx ; private String mTid ; private String mGotoPostId ; private String mTitle ; private String mFid ; private XListView mDetailListView ; private TextView mTipBar ; private TextView mTitleView ; private ThreadDetailFragment . ThreadListLoaderCallbacks mLoaderCallbacks ; private ThreadDetailAdapter mAdapter ; private int mCurrentPage = 1 ; private int mMaxPage = 1 ; private int mGoToPage = 1 ; private int mMaxPostInPage = HiSettingsHelper . getInstance ( ) . getMaxPostsInPage ( ) ; private int mFloorOfPage = - 1 ; private boolean mInloading = false ; private boolean mPrefetching = false ; private TextView mReplyTextTv ; private ImageButton mPostReplyIb ; private View quickReply ; private Handler mMsgHandler ; private boolean mAuthorOnly = false ; private ThreadDetailCache mCache = new ThreadDetailCache ( ) ; public static final String LOADER_PAGE_KEY = "LOADER_PAGE_KEY" ; private HiProgressDialog postProgressDialog ; private FloatingActionsMenu mFam ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onActivityCreated ( Bundle savedInstanceState ) { } @ Override public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private void refresh ( ) { } @ Override public void onPrePost ( ) { } @ Override public void onPostDone ( int mode , int status , String message , PostBean postBean ) { } public DetailBean getCachedPost ( String postId ) { } private class OnScrollCallback implements AbsListView . OnScrollListener { private int mLastFirstVisibleItem ; private long lastUpdate = System . currentTimeMillis ( ) ; @ Override public void onScroll ( AbsListView view , int firstVisibleItem , int visibleItemCount , int totalItemCount ) { } @ Override public void onScrollStateChanged ( AbsListView view , int scrollState ) { } } @ Override public void onResume ( ) { } @ Override public void onPause ( ) { } @ Override public void onStop ( ) { } @ Override public void onDestroy ( ) { } public class ThreadListLoaderCallbacks implements LoaderManager . LoaderCallbacks < DetailListBean > { @ Override public Loader < DetailListBean > onCreateLoader ( int id , Bundle args ) { } @ Override public void onLoadFinished ( Loader < DetailListBean > loader , DetailListBean details ) { } @ Override public void onLoaderReset ( Loader < DetailListBean > arg0 ) { } } private void prefetchNextPage ( int pageOffset ) { } private void setPullLoadStatus ( ) { } public void onSwipeTop ( ) { } public void onSwipeBottom ( ) { } public void onVolumeUp ( ) { } public void onVolumeDown ( ) { } private void listViewPageUp ( ) { } private void listViewPageDown ( ) { } private class OnItemLongClickCallback implements AdapterView . OnItemLongClickListener { @ Override public boolean onItemLongClick ( AdapterView < ? > parent , View view , int position , long id ) { } } private void showGotoPageDialog ( ) { } public boolean hideQuickReply ( ) { <START_BUG> if ( ( quickReply . getVisibility ( ) ) == ( View . VISIBLE ) ) { <END_BUG> mReplyTextTv . setText ( "" ) ; quickReply . setVisibility ( INVISIBLE ) ; mFam . setVisibility ( VISIBLE ) ; return true ; } return false ; } public class GoToFloorOnClickListener implements Button . OnClickListener { @ Override public void onClick ( View view ) { } } private class ThreadDetailMsgHandler implements Handler . Callback { @ Override public boolean handleMessage ( Message msg ) { } } private void showOrLoadPage ( ) { } private void addAuthorPosts ( DetailListBean details ) { } private void showAndLoadAuthorOnly ( ) { } class AvatarOnClickListener extends OnSingleClickListener { @ Override public void onSingleClick ( View arg0 ) { } } }

Fix:
if ( ( ( quickReply ) != null ) && ( ( quickReply . getVisibility ( ) ) == ( View . VISIBLE ) ) ) {