Buggy code:
public class CRMLeads extends BaseFragment implements LoaderManager . LoaderCallbacks < Cursor > , SwipeRefreshLayout . OnRefreshListener , View . OnClickListener , IOnSearchViewChangeListener , ISyncStatusObserverListener , IOnItemClickListener , OCursorListAdapter . BeforeBindUpdateData , OCursorListAdapter . OnViewBindListener , IOnActivityResultListener , IOnBackPressListener , BottomSheetListeners . OnSheetActionClickListener , BottomSheetListeners . OnSheetItemClickListener { public static final String TAG = CRMLeads . class . getSimpleName ( ) ; public static final String KEY_MENU = "key_menu_item" ; public static final int REQUEST_CONVERT_TO_OPPORTUNITY_WIZARD = 223 ; public static final int REQUEST_CONVERT_TO_QUOTATION_WIZARD = 224 ; public static final String KEY_IS_LEAD = "key_is_lead" ; private View mView ; private int mLocal_id = 0 ; private ListView mList ; private OCursorListAdapter mAdapter ; private BottomSheet mSheet = null ; private String mFilter = null ; private String wonLost = "won" ; private boolean syncRequested = false ; private boolean filter_customer_data = false ; private int customer_id = - 1 ; private ODataRow convertRequestRecord = null ; private Bundle syncBundle = new Bundle ( ) ; public enum Type { Leads , Opportunities ; } @ Override public View onCreateView ( LayoutInflater inflater , @ Nullable ViewGroup container , @ Nullable Bundle savedInstanceState ) { } @ Override public void onViewCreated ( View view , @ Nullable Bundle savedInstanceState ) { } private void initAdapter ( ) { } @ Override public void onClick ( View v ) { } @ Override public ODataRow updateDataRow ( Cursor cr ) { } @ Override public Loader < Cursor > onCreateLoader ( int id , Bundle data ) { String where = "<seq2seq4repair_space>type<seq2seq4repair_space>=<seq2seq4repair_space>?" ; String [ ] whereArgs ; List < String > args = new ArrayList < > ( ) ; args . add ( "lead" ) ; if ( ( mFilter ) != null ) { where += "<seq2seq4repair_space>and<seq2seq4repair_space>(name<seq2seq4repair_space>like<seq2seq4repair_space>?<seq2seq4repair_space>or<seq2seq4repair_space>description<seq2seq4repair_space>like<seq2seq4repair_space>?<seq2seq4repair_space>or<seq2seq4repair_space>display_name<seq2seq4repair_space>like<seq2seq4repair_space>?<seq2seq4repair_space>" + "or<seq2seq4repair_space>stage_name<seq2seq4repair_space>like<seq2seq4repair_space>?<seq2seq4repair_space>or<seq2seq4repair_space>title_action<seq2seq4repair_space>like<seq2seq4repair_space>?)" ; args . add ( ( ( "%" + ( mFilter ) ) + "%" ) ) ; args . add ( ( ( "%" + ( mFilter ) ) + "%" ) ) ; args . add ( ( ( "%" + ( mFilter ) ) + "%" ) ) ; args . add ( ( ( "%" + ( mFilter ) ) + "%" ) ) ; args . add ( ( ( "%" + ( mFilter ) ) + "%" ) ) ; } if ( filter_customer_data ) { where += "<seq2seq4repair_space>and<seq2seq4repair_space>partner_id<seq2seq4repair_space>=<seq2seq4repair_space>?" ; args . add ( ( ( customer_id ) + "" ) ) ; } whereArgs = args . toArray ( new String [ args . size ( ) ] ) ; <START_BUG> return new android . support . v4 . content . CursorLoader ( getActivity ( ) , db ( ) . uri ( ) , null , where , whereArgs , "date_action<seq2seq4repair_space>DESC" ) ; <END_BUG> } @ Override public void onLoadFinished ( Loader < Cursor > loader , Cursor data ) { } @ Override public void onLoaderReset ( Loader < Cursor > loader ) { } @ Override public void onViewBind ( View view , Cursor cursor , ODataRow row ) { } @ Override public List < ODrawerItem > drawerMenus ( Context context ) { } private Bundle data ( CRMLeads . Type type ) { } @ Override public Class < CRMLead > database ( ) { } @ Override public void onRefresh ( ) { } @ Override public void onStatusChange ( Boolean refreshing ) { } @ Override public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { } @ Override public boolean onSearchViewTextChange ( String newFilter ) { } @ Override public void onSearchViewClose ( ) { } @ Override public void onItemDoubleClick ( View view , int position ) { } @ Override public void onItemClick ( View view , int position ) { } private void showSheet ( Cursor data ) { } @ Override public void onSheetActionClick ( BottomSheet sheet , Object extras ) { } @ Override public void onItemClick ( BottomSheet sheet , MenuItem menu , Object extras ) { } @ Override public void onOdooActivityResult ( int requestCode , int resultCode , Intent data ) { } OnOperationSuccessListener markDoneListener = new CRMLead . OnOperationSuccessListener ( ) { @ Override public void OnSuccess ( ) { } @ Override public void OnCancelled ( ) { } } ; OnOperationSuccessListener convertDoneListener = new CRMLead . OnOperationSuccessListener ( ) { @ Override public void OnSuccess ( ) { } @ Override public void OnCancelled ( ) { } } ; @ Override public boolean onBackPressed ( ) { } }

Fix:
return new android . support . v4 . content . CursorLoader ( getActivity ( ) , db ( ) . uri ( ) , null , where , whereArgs , "create_date<seq2seq4repair_space>DESC" ) ;