Commit bed56497 authored by unknown's avatar unknown
Browse files

Added handling for empty 'query' value.

parent f319caa5
Pipeline #171515 passed with stages
in 51 seconds
......@@ -10,7 +10,8 @@ public class DownloadFilePage implements Page {
private final DownloadFileResponseData downloadFileResponseData;
public DownloadFilePage(String query, String answer, DownloadFileResponseData downloadFileResponseData) {
this.query = query;
String EMPTY_QUERY = "EMPTY";
this.query = (query.isEmpty()) ? EMPTY_QUERY : query;
this.answer = answer;
this.downloadFileResponseData = downloadFileResponseData;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment