Commit e767316e authored by kshinde's avatar kshinde

Null pointer exception in Lot not Itemchange for if pricelist is null

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196647 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 81f4bc77
...@@ -7027,7 +7027,7 @@ PoReturnICRemote { ...@@ -7027,7 +7027,7 @@ PoReturnICRemote {
pstmt.setString(1, mPordNo);// pstmt.setString(1, mPordNo);//
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) { if (rs.next()) {
ls_pricelist = rs.getString(1); ls_pricelist = checkNull(rs.getString(1));
} }
rs.close(); rs.close();
...@@ -7035,7 +7035,7 @@ PoReturnICRemote { ...@@ -7035,7 +7035,7 @@ PoReturnICRemote {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if (ls_pricelist.trim().length() > 0) if (ls_pricelist!=null && ls_pricelist.trim().length() > 0)
{ {
System.out.println("ldt_trandtStr-1111-["+ldt_trandtStr+"]"); System.out.println("ldt_trandtStr-1111-["+ldt_trandtStr+"]");
mrate = disscommon.pickRate(ls_pricelist, mrate = disscommon.pickRate(ls_pricelist,
...@@ -7094,15 +7094,14 @@ PoReturnICRemote { ...@@ -7094,15 +7094,14 @@ PoReturnICRemote {
pstmt.setString(1, mPordNo);// pstmt.setString(1, mPordNo);//
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) { if (rs.next()) {
ls_pricelist__clg = rs.getString(1); ls_pricelist__clg = checkNull(rs.getString(1));
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if ((ls_pricelist__clg.trim().length() == 0) if (ls_pricelist__clg == null || (ls_pricelist__clg.trim().length() == 0)) {
|| ls_pricelist__clg == null) {
sql = "select udf_str2 " + " from gencodes " sql = "select udf_str2 " + " from gencodes "
+ " where upper(fld_name) = 'TRAN_TYPE' " + " where upper(fld_name) = 'TRAN_TYPE' "
+ " and upper(mod_name) = 'W_PORCP' " + " and upper(mod_name) = 'W_PORCP' "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment