Fix project list screen when no weblinks are provided
List project screen was no displaying projects when no weblinks are provided because of an error in Javascript. Check if weblinks is not null before trying to display each weblink. Change-Id: I0533c434b487f9f1ff31bba2a5f3b1244c7f16f8
This commit is contained in:
@@ -236,9 +236,10 @@ public class ProjectListScreen extends Screen implements FilteredUserInterface {
|
||||
a.setHref(gitWebLink.toProject(k.name_key()));
|
||||
p.add(a);
|
||||
}
|
||||
|
||||
for (WebLinkInfo weblink : webLinks) {
|
||||
p.add(weblink.toAnchor());
|
||||
if (webLinks != null) {
|
||||
for (WebLinkInfo weblink : webLinks) {
|
||||
p.add(weblink.toAnchor());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user