From ed849a321d3d636a653b002d6dda8b70a6a429d9 Mon Sep 17 00:00:00 2001 From: Bjørn Christian Seime Date: Tue, 7 Aug 2018 09:45:47 +0200 Subject: Allow signed identity document without wrapped document --- .../identityprovider/api/bindings/SignedIdentityDocumentEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vespa-athenz') diff --git a/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/bindings/SignedIdentityDocumentEntity.java b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/bindings/SignedIdentityDocumentEntity.java index 3d4872549d6..6f773d51df3 100644 --- a/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/bindings/SignedIdentityDocumentEntity.java +++ b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/bindings/SignedIdentityDocumentEntity.java @@ -54,7 +54,7 @@ public class SignedIdentityDocumentEntity { @JsonProperty("ip-addresses") Set ipAddresses, @JsonProperty("identity-type") String identityType) { this.rawIdentityDocument = rawIdentityDocument; - this.identityDocument = parseIdentityDocument(rawIdentityDocument); + this.identityDocument = rawIdentityDocument != null ? parseIdentityDocument(rawIdentityDocument) : null; this.signature = signature; this.signingKeyVersion = signingKeyVersion; this.providerUniqueId = providerUniqueId; -- cgit v1.2.3