Commit dd1af378 authored by kgaikwad's avatar kgaikwad

On confirmation of Expense voucher getting null pointer exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213937 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1eaf0f99
...@@ -3680,7 +3680,8 @@ public class FinCommon { ...@@ -3680,7 +3680,8 @@ public class FinCommon {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if (cheque_or_name.equalsIgnoreCase("C")) { if (cheque_or_name.equalsIgnoreCase("C")) {
if (chqName == null && chqName.trim().length() == 0) { // if (chqName == null && chqName.trim().length() == 0) {
if (chqName == null || chqName.trim().length() == 0) {
chqName = sName; chqName = sName;
} }
} else { } else {
...@@ -3714,7 +3715,8 @@ public class FinCommon { ...@@ -3714,7 +3715,8 @@ public class FinCommon {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if (cheque_or_name.equalsIgnoreCase("C")) { if (cheque_or_name.equalsIgnoreCase("C")) {
if (chqName == null && chqName.trim().length() == 0) { //if (chqName == null && chqName.trim().length() == 0) { commented by kailasg on 23-dec-2019
if (chqName == null || chqName.trim().length() == 0) { // add by kailasg on 23-dec-2019
chqName = sName; chqName = sName;
} }
} else { } else {
...@@ -3741,7 +3743,8 @@ public class FinCommon { ...@@ -3741,7 +3743,8 @@ public class FinCommon {
sName = fName.trim() + " " + mName.trim() + " " + lName.trim(); sName = fName.trim() + " " + mName.trim() + " " + lName.trim();
if (cheque_or_name.equalsIgnoreCase("C")) { if (cheque_or_name.equalsIgnoreCase("C")) {
if (chqName == null && chqName.trim().length() == 0) { //if (chqName == null && chqName.trim().length() == 0) { commented by kailasg on 23-dec-2019
if (chqName == null || chqName.trim().length() == 0) { //add by kailasg on 23-dec-2019
chqName = sName; chqName = sName;
} }
} else { } else {
......
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