Generate UUID if query id is empty (#4772)

This commit is contained in:
Niketh Sabbineni 2017-09-11 10:40:26 -07:00 committed by Gian Merlino
parent 706747cc8c
commit 975a50fc81
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ public class QueryLifecycle
transition(State.NEW, State.INITIALIZED);
String queryId = baseQuery.getId();
if (queryId == null) {
if (Strings.isNullOrEmpty(queryId)) {
queryId = UUID.randomUUID().toString();
}