Fix NullPointerException

This commit is contained in:
Maksim Tereshin 2024-11-21 12:21:38 +01:00
parent d475f482d6
commit 1d2da82e3f
No known key found for this signature in database

View file

@ -119,8 +119,8 @@ public class DownloadService {
private String prepareRequestURL(DownloadRequest request, LocalDate startDate, LocalDate endDate) { private String prepareRequestURL(DownloadRequest request, LocalDate startDate, LocalDate endDate) {
return request.getRequestURL() return request.getRequestURL()
.replace("${startDate}", startDate.toString()) .replace("${startDate}", (startDate != null) ? startDate.toString() : "")
.replace("${endDate}", endDate.toString()) .replace("${endDate}", (endDate != null) ? endDate.toString() : "")
.replace("${DB}", request.getSqlConnectionParams().getJdbcDatabase()); .replace("${DB}", request.getSqlConnectionParams().getJdbcDatabase());
} }