From e70a0d5f35d3632cbcc9034cd982a6e85744e7ba Mon Sep 17 00:00:00 2001 From: Rishabh Joshi Date: Wed, 15 Mar 2017 17:57:45 +0530 Subject: [PATCH] Fix Null pointer exception in loggers. --- app/controllers/helpers/MailchimpKeyVerifier.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/helpers/MailchimpKeyVerifier.java b/app/controllers/helpers/MailchimpKeyVerifier.java index 0209fc1..749b811 100644 --- a/app/controllers/helpers/MailchimpKeyVerifier.java +++ b/app/controllers/helpers/MailchimpKeyVerifier.java @@ -62,12 +62,12 @@ Optional verifyAndCompleteInstallation(Installation installation, Messag String apiKey = meta[0]; String dataCentre = meta[1]; if (StringUtils.hasText(apiKey) && StringUtils.hasText(dataCentre)) { - log.info("Verifying API key {} for installation {}", apiKey, installation.getId().toHexString()); + log.info("Verifying API key {} for installation {}", apiKey, installation.getInstallationId()); try { WSResponse response = ws.url(String.format(appConfig.getString(Constants.MAILCHIMP_VERIFY_URL), dataCentre)) .setAuth("username", apiKey).get().toCompletableFuture().get(); if (response.getStatus() == Http.Status.OK) { - log.info("Mailchimp API key is verified for installation {}", installation.getId().toHexString()); + log.info("Mailchimp API key is verified for installation {}", installation.getInstallationId()); return Optional.empty(); } else { log.info("The provided Mailchimp API key doesn't seems to be valid one. Installation {}",