Commit 42d3109b authored by Ajit Deshmukh's avatar Ajit Deshmukh

Added checkNull method while fetching the value from the DOM

parent 06ad2fba
......@@ -316,7 +316,7 @@ public class ReqForQuotationConfirm extends ActionHandlerEJB {
InputSource is = new InputSource(new StringReader(processRequestResult));
Document doc = builder.parse(is);
// 🔹 Check SUCCESS
// =9 Check SUCCESS
NodeList detailNodeList = doc.getElementsByTagName("Detail");
if (detailNodeList != null && detailNodeList.getLength() > 0) {
......@@ -325,7 +325,7 @@ public class ReqForQuotationConfirm extends ActionHandlerEJB {
if ("Success".equalsIgnoreCase(detailValue)) {
BaseLogger.log("3", null, null, "Transaction SUCCESS");
// Success logic
//  Success logic
String tranIdOfSalesQuotaion = doc.getElementsByTagName("TranID").item(0)
.getTextContent();
BaseLogger.log("3", null, null,
......@@ -414,6 +414,12 @@ public class ReqForQuotationConfirm extends ActionHandlerEJB {
}
} else {
BaseLogger.log("3", null, null, "Sales Quotation Generation Failed: ");
errString = itmdbAccessLocal.getErrorString(
"confirmed",
"VTCONFERR",
"",
"",
conn);
}
} catch (Exception e) {
......
This diff is collapsed.
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