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,9 +415,12 @@ public class RepositoryResource
{ {
ChangesetPreProcessor cpp = factory.createPreProcessor(repository); ChangesetPreProcessor cpp = factory.createPreProcessor(repository);
for (Changeset c : changesets.getChangesets()) if (cpp != null)
{ {
cpp.process(c); for (Changeset c : changesets.getChangesets())
{
cpp.process(c);
}
} }
} }
} }