Hi,
SmartGWT version being used is 12.1-p20201118
Getting NullPointerException intermittently at addSQLForJoinedFields method of SQLSelectClause at line 517 which means either relatedDS is null or relatedDS.getTable() is null which is causing NullPointerException.
String tableName = relatedDS.getTable().getNameQuotedIfNecessary(relatedDS);
So what can be the case of this issue?
DS being fetched is as below:
and GroupSQL is as
and NotesSQL is as
SmartGWT version being used is 12.1-p20201118
Getting NullPointerException intermittently at addSQLForJoinedFields method of SQLSelectClause at line 517 which means either relatedDS is null or relatedDS.getTable() is null which is causing NullPointerException.
String tableName = relatedDS.getTable().getNameQuotedIfNecessary(relatedDS);
So what can be the case of this issue?
DS being fetched is as below:
Code:
<DataSource ID="LineSQL" serverType="sql" tableName="line"/> <fields> <field name="line_id" type="sequence" primaryKey="true" hidden="true"/> <field name="group_id" type="integer" foreignKey="GroupSQL.group_id" hidden="true" joinType="outer"/> <field name="groupType" type="text" length="100" includeFrom="GroupSQL.name"/> <field name="notes_id" type="integer" foreignKey="NotesSQL.notes_id" hidden="true" joinType="outer" relatedTableAlias="n"/> <field name="notes" type="text" length="100" includeFrom="NotesSQL.description"/> </fields> </DataSource>
Code:
<DataSource ID="GroupSQL" serverType="sql" tableName="group" quoteTableName="true" dropExtraFields="false" xmlns:fmt="WEB-INF/"> <fields> <field name="group_id" type="sequence" primaryKey="true" hidden="true"/> <field name="name" type="text" length="100"/> </fields> </DataSource>
Code:
<DataSource ID="NotesSQL" serverType="sql" tableName="notes" dropExtraFields="false" xmlns:fmt="WEB-INF/"> <fields> <field name="notes_id" type="sequence" primaryKey="true" hidden="true"/> <field name="description" type="text" length="100"/> </fields> </DataSource>
Comment