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:
@@ -230,8 +230,15 @@ public class RepositoryResource
|
||||
ChangesetPagingResult changesets = changesetViewer.getChangesets(start,
|
||||
limit);
|
||||
|
||||
callPreProcessors(changesets);
|
||||
response = Response.ok(changesets).build();
|
||||
if (changesets != null)
|
||||
{
|
||||
callPreProcessors(changesets);
|
||||
response = Response.ok(changesets).build();
|
||||
}
|
||||
else
|
||||
{
|
||||
response = Response.ok().build();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user