This commit is contained in:
Maksim Tereshin 2025-03-18 10:43:40 -05:00
parent 01013ad521
commit b59f09cd54
No known key found for this signature in database

View file

@ -57,7 +57,11 @@ public class ConfigExecutorService {
HttpMethod.POST, entity, byte[].class
);
String content = Base64.getEncoder().encodeToString(response.getBody());
String content = "";
if (response != null && response.getBody() != null) {
content = Base64.getEncoder().encodeToString(response.getBody());
}
FileModel fileModel = new FileModel();
fileModel.setFileContent(content);
fileModel.setFileExtension(".csv");