Fix NullPointerException
This commit is contained in:
parent
d475f482d6
commit
1d2da82e3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue