Merge branch 'stable'
* stable: Support different color pallete when not signed in Send new patchset event after its available Enable git:// download URLs if canonicalGitUrl set Fix NPE on Gerrit startup if mail.from doesn't include a name Add config setting to only suggest users which are in a visible group Change-Id: I2bc9ca40e616c7f7b0c12de41f631c916439289c
This commit is contained in:
@@ -52,8 +52,8 @@ public class FromAddressGeneratorProvider implements
|
||||
|
||||
} else {
|
||||
final Address a = Address.parse(from);
|
||||
final ParamertizedString name = new ParamertizedString(a.name);
|
||||
if (name.getParameterNames().isEmpty()) {
|
||||
final ParamertizedString name = a.name != null ? new ParamertizedString(a.name) : null;
|
||||
if (name == null || name.getParameterNames().isEmpty()) {
|
||||
generator = new ServerGen(a);
|
||||
} else {
|
||||
generator = new PatternGen(srvAddr, accountCache, name, a.email);
|
||||
|
Reference in New Issue
Block a user