Commit 6c8bbd5c by Nilu

S12475114 # Internal Issues (raised by QA) #NPE when adding billing info for Ecolab

parent debdd48b
...@@ -56,11 +56,16 @@ public class ReplaceCardFP extends SaveFP ...@@ -56,11 +56,16 @@ public class ReplaceCardFP extends SaveFP
HiringTeam hiringTeam = (HiringTeam)process.getAttribute("HiringTeam"); HiringTeam hiringTeam = (HiringTeam)process.getAttribute("HiringTeam");
Card card = StripeUtils.updateCardDetails(hiringTeam, token); Card card = StripeUtils.updateCardDetails(hiringTeam, token);
LogMgr.log(LOG, LogLevel.PROCESSING1,"In ReplaceCardFP replacing card details of hiringTeam: " + hiringTeam ); LogMgr.log(LOG, LogLevel.PROCESSING1,"In ReplaceCardFP replacing card details of hiringTeam: ", hiringTeam, " card : " , card );
hiringTeam.setNameOnCard(card.getName()); if (card != null)
hiringTeam.setCardPostCode(card.getAddressZip()); {
hiringTeam.setCardID(card.getId()); hiringTeam.setNameOnCard(card.getName());
hiringTeam.setCardPostCode(card.getAddressZip());
hiringTeam.setCardID(card.getId());
LogMgr.log(LOG, LogLevel.PROCESSING1,"In ReplaceCardFP card details updated of hiring team: ", hiringTeam);
}
} }
catch(StorageException | FieldException e) catch(StorageException | FieldException e)
{ {
......
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