diff options
author | James Moger <james.moger@gitblit.com> | 2012-11-11 14:07:45 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-11-11 14:08:25 -0500 |
commit | b845f1ff0ad89ba14dbe1a0fdd4e553120f04182 (patch) | |
tree | e8f0517ffc7c13d5f98e456c05f661a779d4e5e1 /src | |
parent | adf0e0a95e0b8bff650f21081da469b7b4fd1326 (diff) | |
download | gitblit-b845f1ff0ad89ba14dbe1a0fdd4e553120f04182.tar.gz gitblit-b845f1ff0ad89ba14dbe1a0fdd4e553120f04182.zip |
Empty repository page failed to handle missing repository (issue 160)
Diffstat (limited to 'src')
-rw-r--r-- | src/com/gitblit/wicket/pages/EmptyRepositoryPage.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java b/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java index ad74af8c..be0dad9e 100644 --- a/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java +++ b/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java @@ -39,6 +39,9 @@ public class EmptyRepositoryPage extends RootPage { String repositoryName = WicketUtils.getRepositoryName(params);
RepositoryModel repository = GitBlit.self().getRepositoryModel(repositoryName);
+ if (repository == null) {
+ error(getString("gb.canNotLoadRepository") + " " + repositoryName, true);
+ }
if (repository.hasCommits) {
// redirect to the summary page if this repository is not empty
|