From 2898642ebf166dd836d7430f6c81cf8e1e018c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Mon, 21 Dec 2015 23:34:17 +0100 Subject: [PATCH] Do not remove location data from Registration on modify --- .../java/org/shredzone/acme4j/impl/AbstractAcmeClient.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acme4j-client/src/main/java/org/shredzone/acme4j/impl/AbstractAcmeClient.java b/acme4j-client/src/main/java/org/shredzone/acme4j/impl/AbstractAcmeClient.java index 57bc6e25..74d9a619 100644 --- a/acme4j-client/src/main/java/org/shredzone/acme4j/impl/AbstractAcmeClient.java +++ b/acme4j-client/src/main/java/org/shredzone/acme4j/impl/AbstractAcmeClient.java @@ -153,7 +153,10 @@ public abstract class AbstractAcmeClient implements AcmeClient { conn.throwAcmeException(); } - registration.setLocation(conn.getLocation()); + URI location = conn.getLocation(); + if (location != null) { + registration.setLocation(conn.getLocation()); + } URI tos = conn.getLink("terms-of-service"); if (tos != null) {