fix possible NullPointerException

This commit is contained in:
Sebastian Sdorra
2011-08-15 15:09:49 +02:00
parent 12299bacae
commit 22e023bcb3

View File

@@ -415,12 +415,15 @@ public class RepositoryResource
{
ChangesetPreProcessor cpp = factory.createPreProcessor(repository);
if (cpp != null)
{
for (Changeset c : changesets.getChangesets())
{
cpp.process(c);
}
}
}
}
else if (logger.isWarnEnabled())
{
logger.warn("could not find repository {}", id);