mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
fix possible NullPointerException
This commit is contained in:
@@ -415,9 +415,12 @@ public class RepositoryResource
|
||||
{
|
||||
ChangesetPreProcessor cpp = factory.createPreProcessor(repository);
|
||||
|
||||
for (Changeset c : changesets.getChangesets())
|
||||
if (cpp != null)
|
||||
{
|
||||
cpp.process(c);
|
||||
for (Changeset c : changesets.getChangesets())
|
||||
{
|
||||
cpp.process(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user