Fix NPE on synchronous repository export (#2040)

When a repository was exported synchronously with metadata,
the server ran into a NullPointerException. The was because
the resource tried to write an export result to a stored
export item, that does not exist for synchronous exports.

This simply removes this call.
This commit is contained in:
René Pfeuffer
2022-05-19 08:36:25 +02:00
committed by GitHub
parent 256106545d
commit 303f8daaf9
2 changed files with 2 additions and 2 deletions

View File

@@ -457,8 +457,6 @@ public class RepositoryExportResource {
return Response.status(204).build();
} else {
StreamingOutput output = os -> fullScmRepositoryExporter.export(repository, os, password);
exportService.setExportFinished(repository);
return Response
.ok(output, "application/x-gzip")
.header("content-disposition", createContentDispositionHeaderValue(repository, fileExtension))