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