Commit 391e6141 authored by Mahesh Maney R's avatar Mahesh Maney R
Browse files

checking for null <ManeyMR>.

Showing with 2 additions and 2 deletions
+2 -2
......@@ -118,10 +118,10 @@ public class PaymentServiceImpl implements PaymentService {
String uniqueRefNumber = requestData.get("Unique Ref Number");
String responseCode = requestData.get("Response Code");
String date = requestData.get("Transaction Date");
DateFormat format = new SimpleDateFormat("MMMM d, yyyy", Locale.ENGLISH);
Date transactionDate = null;
try {
String date = requestData.get("Transaction Date") != null ? requestData.get("Transaction Date") : "";
DateFormat format = new SimpleDateFormat("MMMM d, yyyy", Locale.ENGLISH);
transactionDate = format.parse(date);
} catch (ParseException e) {
logger.error("parsing date failed.",e);
......
Supports Markdown
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