AWE throws exception when launching a query without tables
Summary
Whenever AWE tries to launch a query without Tables, it throws a NULL POINTER, in getTables method from SQLQueryBuilder
AWE version
4.1.5
Steps to reproduce
In any query without Tables
What is the current bug behavior?
The bug is here, inside the getTables method:
List<Table> tableList = this.getQuery().getTableList();
Expression[] tables = new Expression[tableList.size()];
getTableList() returns null when there is no tables, and then AWE tries to call the method size() on a null object, resulting in the null pointer exception
What is the expected correct behavior?
getTableList should return an empty list when there is no tables, or there should be a null check before trying to call any methods of it