Merge branch 'stable-3.0'
* origin/stable-3.0:
Fix compilation error: use accessor for preferredEmail
Change-Id: I885f9d1b80acc3f824c847bde85108be6ead9e0d
diff --git a/src/main/java/com/googlesource/gerrit/plugins/avatars/external/ExternalUrlAvatarProvider.java b/src/main/java/com/googlesource/gerrit/plugins/avatars/external/ExternalUrlAvatarProvider.java
index 10138a7..dc38718 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/avatars/external/ExternalUrlAvatarProvider.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/avatars/external/ExternalUrlAvatarProvider.java
@@ -131,6 +131,6 @@
private String fillOutTemplate(String template, IdentifiedUser user) {
String workString = replaceInUrl("${user}", template, user.getUserName().orElse(null));
workString = replaceInUrl("${id}", workString, Integer.toString(user.getAccountId().get()));
- return replaceInUrl("${email}", workString, user.getAccount().getPreferredEmail());
+ return replaceInUrl("${email}", workString, user.getAccount().preferredEmail());
}
}