"Report Bug" URL can never be null
The config provider will always provide a value. Either the value given by the user in gerrit.config, or the default value. Change-Id: I9b7107857c79f939ed5315e52610277b05ef7d67
This commit is contained in:
@@ -463,15 +463,14 @@ public class Gerrit implements EntryPoint {
|
||||
btmmenu.add(new InlineLabel(C.keyHelp()));
|
||||
btmmenu.add(new InlineLabel(" | "));
|
||||
btmmenu.add(new InlineHTML(M.poweredBy(vs)));
|
||||
if (getConfig().getReportBugUrl() != null) {
|
||||
Anchor a = new Anchor(
|
||||
C.reportBug(),
|
||||
getConfig().getReportBugUrl());
|
||||
a.setTarget("_blank");
|
||||
a.setStyleName("");
|
||||
btmmenu.add(new InlineLabel(" | "));
|
||||
btmmenu.add(a);
|
||||
}
|
||||
|
||||
Anchor a = new Anchor(
|
||||
C.reportBug(),
|
||||
getConfig().getReportBugUrl());
|
||||
a.setTarget("_blank");
|
||||
a.setStyleName("");
|
||||
btmmenu.add(new InlineLabel(" | "));
|
||||
btmmenu.add(a);
|
||||
}
|
||||
|
||||
private void onModuleLoad2(HostPageData hpd) {
|
||||
|
Reference in New Issue
Block a user