mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 21:20:45 +00:00
Avoid an NPE if a table doesn't have fields
This commit is contained in:
@ -1416,7 +1416,7 @@ public class QInstanceEnricher
|
|||||||
if(table != null)
|
if(table != null)
|
||||||
{
|
{
|
||||||
String primaryKeyField = table.getPrimaryKeyField();
|
String primaryKeyField = table.getPrimaryKeyField();
|
||||||
QFieldMetaData primaryKeyFieldMetaData = table.getFields().get(primaryKeyField);
|
QFieldMetaData primaryKeyFieldMetaData = CollectionUtils.nonNullMap(table.getFields()).get(primaryKeyField);
|
||||||
if(primaryKeyFieldMetaData != null)
|
if(primaryKeyFieldMetaData != null)
|
||||||
{
|
{
|
||||||
possibleValueSource.setIdType(primaryKeyFieldMetaData.getType());
|
possibleValueSource.setIdType(primaryKeyFieldMetaData.getType());
|
||||||
|
Reference in New Issue
Block a user