fix possible NullPointerException

This commit is contained in:
Sebastian Sdorra
2011-06-22 13:33:29 +02:00
parent 332f915f52
commit d86c1463b8

View File

@@ -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();
}