Fix bug ID 1648458 - M_PriceList_Create throwing java.lang.NullPointerException

This commit is contained in:
Carlos Ruiz 2007-01-31 05:36:30 +00:00
parent 1b3ddb208f
commit 63cb62c5f5
1 changed files with 8 additions and 10 deletions

View File

@ -145,7 +145,8 @@ public class M_PriceList_Create extends SvrProcess {
totu += cntu; totu += cntu;
log.fine("Updated " + cntu); log.fine("Updated " + cntu);
DB.commit(true, get_TrxName()); // let the commit for SvrProcess
// DB.commit(true, get_TrxName());
// //
// Make sure that we have only one active product // Make sure that we have only one active product
@ -173,7 +174,7 @@ public class M_PriceList_Create extends SvrProcess {
// //
// Leave First // Leave First
// //
Vend.next();
while (Vend.next()) { while (Vend.next()) {
sqlupd = "UPDATE M_Product_PO " sqlupd = "UPDATE M_Product_PO "
+ " SET IsCurrentVendor = 'N' " + " SET IsCurrentVendor = 'N' "
@ -199,11 +200,7 @@ public class M_PriceList_Create extends SvrProcess {
Cur_Duplicates.close(); Cur_Duplicates.close();
Cur_Duplicates = null; Cur_Duplicates = null;
// // DB.commit(true, get_TrxName());
//Commit
//
DB.commit(true, get_TrxName());
// //
// Delete Old Data // Delete Old Data
@ -687,8 +684,8 @@ public class M_PriceList_Create extends SvrProcess {
// //
//commit; //commit;
// //
log.fine("Committing ..."); // log.fine("Committing ...");
DB.commit(true, get_TrxName()); // DB.commit(true, get_TrxName());
} }
v.close(); v.close();
@ -700,7 +697,8 @@ public class M_PriceList_Create extends SvrProcess {
} // del doIt } // del doIt
private void raiseError(String string, String sql) throws Exception { private void raiseError(String string, String sql) throws Exception {
DB.rollback(false, get_TrxName());
// DB.rollback(false, get_TrxName());
String msg = string; String msg = string;
ValueNamePair pp = CLogger.retrieveError(); ValueNamePair pp = CLogger.retrieveError();
if (pp != null) if (pp != null)