Buggy code:
public class DbAdapter_Comprob_Cobro { public static final String CC_id_cob_historial = "_id" ; public static final String CC_id_comprobante_cobro = "cc_in_id_comprobante_cobro" ; public static final String CC_id_establec = "cc_in_id_establec" ; public static final String CC_id_comprob = "cc_in_id_comprob" ; public static final String CC_id_plan_pago = "cc_in_id_plan_pago" ; public static final String CC_id_plan_pago_detalle = "cc_in_id_plan_pago_detalle" ; public static final String CC_desc_tipo_doc = "cc_te_desc_tipo_doc" ; public static final String CC_doc = "cc_te_doc" ; public static final String CC_fecha_programada = "cc_te_fecha_programada" ; public static final String CC_monto_a_pagar = "cc_re_monto_a_pagar" ; public static final String estado_sincronizacion = "estado_sincronizacion" ; public static final String CC_estado_cobro = "cc_in_estado_cobro" ; public static final String CC_fecha_cobro = "cc_te_fecha_cobro" ; public static final String CC_hora_cobro = "cc_te_hora_cobro" ; public static final String CC_monto_cobrado = "cc_re_monto_cobrado" ; public static final String CC_id_agente = "cc_in_id_agente" ; public static final String CC_id_forma_cobro = "cc_id_forma_cobro" ; public static final String CC_lugar_registro = "cc_lugar_registro" ; public static final String TAG = "Comprob_Cobro" ; private DbHelper mDbHelper ; private SQLiteDatabase mDb ; private static final String SQLITE_TABLE_Comprob_Cobro = "m_comprob_cobro" ; private final Context mCtx ; public static final String CREATE_TABLE_COMPROB_COBRO = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "create<seq2seq4repair_space>table<seq2seq4repair_space>if<seq2seq4repair_space>not<seq2seq4repair_space>exists<seq2seq4repair_space>" + ( DbAdapter_Comprob_Cobro . SQLITE_TABLE_Comprob_Cobro ) ) + "<seq2seq4repair_space>(" ) + ( DbAdapter_Comprob_Cobro . CC_id_cob_historial ) ) + "<seq2seq4repair_space>integer<seq2seq4repair_space>primary<seq2seq4repair_space>key<seq2seq4repair_space>autoincrement," ) + ( DbAdapter_Comprob_Cobro . CC_id_comprobante_cobro ) ) + "<seq2seq4repair_space>text," ) + ( DbAdapter_Comprob_Cobro . CC_id_establec ) ) + "<seq2seq4repair_space>integer," ) + ( DbAdapter_Comprob_Cobro . CC_id_comprob ) ) + "<seq2seq4repair_space>integer," ) + ( DbAdapter_Comprob_Cobro . CC_id_plan_pago ) ) + "<seq2seq4repair_space>integer," ) + ( DbAdapter_Comprob_Cobro . CC_id_plan_pago_detalle ) ) + "<seq2seq4repair_space>integer," ) + ( DbAdapter_Comprob_Cobro . CC_desc_tipo_doc ) ) + "<seq2seq4repair_space>text," ) + ( DbAdapter_Comprob_Cobro . CC_doc ) ) + "<seq2seq4repair_space>text," ) + ( DbAdapter_Comprob_Cobro . CC_fecha_programada ) ) + "<seq2seq4repair_space>text," ) + ( DbAdapter_Comprob_Cobro . CC_monto_a_pagar ) ) + "<seq2seq4repair_space>real," ) + ( DbAdapter_Comprob_Cobro . CC_fecha_cobro ) ) + "<seq2seq4repair_space>text," ) + ( DbAdapter_Comprob_Cobro . CC_hora_cobro ) ) + "<seq2seq4repair_space>text," ) + ( DbAdapter_Comprob_Cobro . CC_monto_cobrado ) ) + "<seq2seq4repair_space>real," ) + ( DbAdapter_Comprob_Cobro . CC_estado_cobro ) ) + "<seq2seq4repair_space>integer," ) + ( DbAdapter_Comprob_Cobro . CC_id_agente ) ) + "<seq2seq4repair_space>integer," ) + ( DbAdapter_Comprob_Cobro . CC_id_forma_cobro ) ) + "<seq2seq4repair_space>integer," ) + ( DbAdapter_Comprob_Cobro . CC_lugar_registro ) ) + "<seq2seq4repair_space>text,<seq2seq4repair_space>" ) + ( DbAdapter_Comprob_Cobro . estado_sincronizacion ) ) + "<seq2seq4repair_space>integer);" ; public static final String DELETE_TABLE_COMPROB_COBRO = "DROP<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + ( DbAdapter_Comprob_Cobro . SQLITE_TABLE_Comprob_Cobro ) ; public DbAdapter_Comprob_Cobro ( Context ctx ) { } public DbAdapter_Comprob_Cobro open ( ) throws SQLException { } public void close ( ) { } public long createComprobCobros ( int id_establec , long id_comprob , int id_plan_pago , int id_plan_pago_detalle , String desc_tipo_doc , String doc , String fecha_programada , double monto_a_pagar , String fecha_cobro , String hora_cobro , double monto_cobrado , int estado_cobro , int id_agente , int id_forma_cobro , String lugar_registro ) { } public long createComprobCobro ( ComprobanteCobro comprobanteCobro ) { ContentValues initialValues = new ContentValues ( ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_id_comprobante_cobro , comprobanteCobro . getIdComprobanteCobro ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_id_establec , comprobanteCobro . getIdEstablecimiento ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_id_comprob , comprobanteCobro . getIdComprobante ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_id_plan_pago , comprobanteCobro . getIdPlanPago ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_id_plan_pago_detalle , comprobanteCobro . getIdPlanPagoDetalle ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_desc_tipo_doc , comprobanteCobro . getDescTipoDoc ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_doc , comprobanteCobro . getDoc ( ) ) ; <START_BUG> initialValues . put ( DbAdapter_Comprob_Cobro . CC_fecha_programada , comprobanteCobro . getFechaCobro ( ) ) ; <END_BUG> initialValues . put ( DbAdapter_Comprob_Cobro . CC_monto_a_pagar , comprobanteCobro . getMontoPagar ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_fecha_cobro , comprobanteCobro . getFechaCobro ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_hora_cobro , comprobanteCobro . getHoraCobro ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_monto_cobrado , comprobanteCobro . getMontoCobrado ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_estado_cobro , comprobanteCobro . getEstadoCobro ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_id_agente , comprobanteCobro . getIdAgente ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_id_forma_cobro , comprobanteCobro . getIdFormaCobro ( ) ) ; initialValues . put ( DbAdapter_Comprob_Cobro . CC_lugar_registro , comprobanteCobro . getLugarRegistro ( ) ) ; return mDb . insert ( DbAdapter_Comprob_Cobro . SQLITE_TABLE_Comprob_Cobro , null , initialValues ) ; } public void updateComprobCobros ( ComprobanteCobro comprobanteCobro ) { } public boolean existeComprobCobro ( String comprobanteCobro ) throws SQLException { } public void updateComprobCobros ( String id , double valor ) { } public void updateComprobCobrosCan ( String id , String fecha , String hora , double valor , String estado ) { } public void updateComprobCobrosMan ( String id , String fecha , String hora , double valor , String estado ) { } public int updateComprobCobrosCan2 ( String id , String fecha , String hora , double valor , String estado ) { } public boolean deleteAllComprobCobros ( ) { } public Cursor fetchComprobCobrosByIds ( String inputText ) throws SQLException { } public Cursor fetchComprobCobrosByName ( String inputText ) throws SQLException { } public Cursor fetchAllComprobCobros ( ) { } public Cursor fetchAllComprobCobrosByEst ( String inputText ) throws SQLException { } public Cursor listaComprobantes ( int establex ) { } public Cursor listarComprobantesToCobros ( ) { } public Cursor listarComprobantesToCobrosMante ( String idEstablec ) { } public void insertSomeComprobCobros ( ) { } No newline ; at end ; of file ; }

Fix:
initialValues . put ( DbAdapter_Comprob_Cobro . CC_fecha_programada , comprobanteCobro . getFechaProgramada ( ) ) ;