Check against null values
This commit is contained in:
parent
1677a0b359
commit
810bb023bc
@ -26,7 +26,7 @@ public class ExpirationProbe extends Probe<Credential> {
|
||||
* and the expiration date is prior to the current date, the credential has expired.
|
||||
*/
|
||||
JsonNode node = crd.getJson().get(crd.getExpiresAtPropertyName());
|
||||
if(node != null) {
|
||||
if(node != null && !node.isNull()) {
|
||||
try {
|
||||
ZonedDateTime expirationDate = ZonedDateTime.parse(node.textValue());
|
||||
if (ZonedDateTime.now().isAfter(expirationDate)) {
|
||||
|
Loading…
Reference in New Issue
Block a user