Buggy code:
public class DbAdapter { private DbAdapter . DatabaseHelper mDbHelper ; private SQLiteDatabase mDb ; private final Context mCtx ; private static final String DATABASE_NAME = "fortour.db" ; private static final String DATABASE_TABLE = "ftdata" ; private static final int DATABASE_VERSION = 1 ; public static final String KEY_ROWID = "_id" ; public static final String KEY_TITLE = "ftTitle" ; public static final String KEY_IMAGE = "ftImage" ; public static final String KEY_STORY = "ftStory" ; public static final String KEY_LOCATION = "ftLocation" ; public static final String KEY_HAS_RECORD = "ftHasRecord" ; public static final String KEY_TIME = "ftTime" ; private static final String DATABASE_CREATE = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>" + ( DbAdapter . DATABASE_TABLE ) ) + "<seq2seq4repair_space>(<seq2seq4repair_space>" ) + ( DbAdapter . KEY_ROWID ) ) + "<seq2seq4repair_space>INTEGER<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY<seq2seq4repair_space>AUTOINCREMENT,<seq2seq4repair_space>" ) + ( DbAdapter . KEY_TITLE ) ) + "<seq2seq4repair_space>TEXT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" ) + ( DbAdapter . KEY_IMAGE ) ) + "<seq2seq4repair_space>TEXT<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" ) + ( DbAdapter . KEY_STORY ) ) + "<seq2seq4repair_space>TEXT<seq2seq4repair_space>NULL," ) + ( DbAdapter . KEY_LOCATION ) ) + "<seq2seq4repair_space>TEXT<seq2seq4repair_space>NULL," ) + ( DbAdapter . KEY_HAS_RECORD ) ) + "<seq2seq4repair_space>INTEGER<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL," ) + ( DbAdapter . KEY_TIME ) ) + "<seq2seq4repair_space>LONG" ) + "<seq2seq4repair_space>);" ; private static final String DATABASE_UPGRADE = ( "DROP<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + ( DbAdapter . DATABASE_TABLE ) ) + ";" ; private static class DatabaseHelper extends SQLiteOpenHelper { public DatabaseHelper ( Context context ) { } @ Override public void onCreate ( SQLiteDatabase db ) { } @ Override public void onUpgrade ( SQLiteDatabase db , int oldVersion , int newVersion ) { } } public DbAdapter ( Context ctx ) { } public DbAdapter open ( ) throws SQLException { } public void close ( ) { } public long ftStoryAdd ( final String ftTitle , final String ftImage , final String ftStory , final String ftLocation , final int ftHasRecord ) { } public boolean ftStoryDel ( final long contactId ) { } public Cursor ftStoryFetchAll ( ) { <START_BUG> return mDb . query ( DbAdapter . DATABASE_TABLE , new String [ ] { DbAdapter . KEY_ROWID , DbAdapter . KEY_TITLE , DbAdapter . KEY_IMAGE , DbAdapter . KEY_STORY , DbAdapter . KEY_LOCATION , DbAdapter . KEY_HAS_RECORD , DbAdapter . KEY_TIME } , null , null , null , null , null ) ; <END_BUG> } public Cursor ftStoryFetchByID ( final String ftID ) { } }

Fix:
return mDb . query ( DbAdapter . DATABASE_TABLE , new String [ ] { DbAdapter . KEY_ROWID , DbAdapter . KEY_TITLE , DbAdapter . KEY_IMAGE , DbAdapter . KEY_STORY , DbAdapter . KEY_LOCATION , DbAdapter . KEY_HAS_RECORD , DbAdapter . KEY_TIME } , null , null , null , null , ( ( DbAdapter . KEY_ROWID ) + "<seq2seq4repair_space>DESC" ) ) ;