Program: 187341
Project: 187341
Buggy source:
@Override public Cursor query(Uri uri,String[] projection,String selection,String[] selectionArgs,String sortOrder){
  SQLiteQueryBuilder qBuilder=new SQLiteQueryBuilder();
  Cursor c=null;
  int choose=sURIMatcher.match(uri);
  dba=db.getDB();
switch (choose) {
case USER:
    qBuilder.setTables(SQLitehelper.USER_TABLE_NAME);
  c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case TRUSTED:
qBuilder.setTables(SQLitehelper.TRUSTED_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case NUMBERS:
qBuilder.setTables(SQLitehelper.NUMBERS_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case SHARED_INFO:
qBuilder.setTables(SQLitehelper.SHARED_INFO_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case BOOK_PATH:
qBuilder.setTables(SQLitehelper.BOOK_PATHS_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case MESSAGE:
qBuilder.setTables(SQLitehelper.MESSAGES_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case QUEUE:
qBuilder.setTables(SQLitehelper.QUEUE_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case EXCHANGE:
qBuilder.setTables(SQLitehelper.EXCHANGE_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case TRUST_NUMBERS:
qBuilder.setTables(TRUST_NUMBER_TABLE);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case TRUST_NUM_MESS:
qBuilder.setTables(TRUST_NUM_MESS_TABLE);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case QUERY:
qBuilder.setTables(QUERY_STRING);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,SQLitehelper.KEY_REFERENCE,"String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case WALKTHROUGH:
qBuilder.setTables(SQLitehelper.WALKTHROUGH_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
default :
throw new IllegalArgumentException("String_Node_Str" + uri);
}
}

Fixed version (ground truth):
@Override public Cursor query(Uri uri,String[] projection,String selection,String[] selectionArgs,String sortOrder){
  SQLiteQueryBuilder qBuilder=new SQLiteQueryBuilder();
  Cursor c=null;
  int choose=sURIMatcher.match(uri);
  dba=db.getDB();
switch (choose) {
case USER:
    qBuilder.setTables(SQLitehelper.USER_TABLE_NAME);
  c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case TRUSTED:
qBuilder.setTables(SQLitehelper.TRUSTED_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case NUMBERS:
qBuilder.setTables(SQLitehelper.NUMBERS_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case SHARED_INFO:
qBuilder.setTables(SQLitehelper.SHARED_INFO_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case BOOK_PATH:
qBuilder.setTables(SQLitehelper.BOOK_PATHS_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case MESSAGE:
qBuilder.setTables(SQLitehelper.MESSAGES_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case QUEUE:
qBuilder.setTables(SQLitehelper.QUEUE_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case EXCHANGE:
qBuilder.setTables(SQLitehelper.EXCHANGE_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case WALKTHROUGH:
qBuilder.setTables(SQLitehelper.WALKTHROUGH_TABLE_NAME);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case TRUST_NUMBERS:
qBuilder.setTables(TRUST_NUMBER_TABLE);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case TRUST_NUM_MESS:
qBuilder.setTables(TRUST_NUM_MESS_TABLE);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,"String_Node_Str","String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
case QUERY:
qBuilder.setTables(QUERY_STRING);
c=qBuilder.query(db.getWritableDatabase(),projection,selection,selectionArgs,SQLitehelper.KEY_REFERENCE,"String_Node_Str",sortOrder);
c.setNotificationUri(getContext().getContentResolver(),uri);
return c;
default :
throw new IllegalArgumentException("String_Node_Str" + uri);
}
}