fix wrong RepositoryNotFoundException in firePostReceiveEvent

This commit is contained in:
Sebastian Sdorra
2011-07-17 18:15:54 +02:00
parent 998791ae2a
commit 83f165457e

View File

@@ -243,7 +243,7 @@ public class XmlRepositoryManager extends AbstractRepositoryManager
{ {
Repository repository = repositoryDB.get(type, name); Repository repository = repositoryDB.get(type, name);
if (repository != null) if (repository == null)
{ {
throw new RepositoryNotFoundException(); throw new RepositoryNotFoundException();
} }
@@ -266,7 +266,7 @@ public class XmlRepositoryManager extends AbstractRepositoryManager
{ {
Repository repository = repositoryDB.get(id); Repository repository = repositoryDB.get(id);
if (repository != null) if (repository == null)
{ {
throw new RepositoryNotFoundException(); throw new RepositoryNotFoundException();
} }