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