Do not remove location data from Registration on modify

pull/17/merge
Richard Körber 2015-12-21 23:34:17 +01:00
parent 26c81e3890
commit 2898642ebf
1 changed files with 4 additions and 1 deletions

View File

@ -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) {