mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
fix possible NullPointerException
This commit is contained in:
@@ -230,10 +230,17 @@ public class RepositoryResource
|
||||
ChangesetPagingResult changesets = changesetViewer.getChangesets(start,
|
||||
limit);
|
||||
|
||||
if (changesets != null)
|
||||
{
|
||||
callPreProcessors(changesets);
|
||||
response = Response.ok(changesets).build();
|
||||
}
|
||||
else
|
||||
{
|
||||
response = Response.ok().build();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
response = Response.status(Response.Status.NOT_FOUND).build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user