Fix NPE
This commit is contained in:
parent
01013ad521
commit
b59f09cd54
1 changed files with 5 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue