return;\r
}\r
\r
- String projectName = WicketUtils.getProjectName(params);\r
+ String projectName = params == null ? null : WicketUtils.getProjectName(params);\r
if (StringUtils.isEmpty(projectName)) {\r
throw new GitblitRedirectException(GitBlitWebApp.get().getHomePage());\r
}\r
// reset the daysback parameter so that we have a complete project\r
// repository list. the recent activity will be built up by the\r
// reflog utils.\r
- params.remove("db");\r
+ if (params != null) {\r
+ params.remove("db");\r
+ }\r
\r
List<RepositoryModel> repositories = getRepositories(params);\r
Collections.sort(repositories, new Comparator<RepositoryModel>() {\r