mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Update to not NPE is record is null (rather, return null)
This commit is contained in:
@ -64,6 +64,11 @@ public class QRecordApiAdapter
|
||||
*******************************************************************************/
|
||||
public static Map<String, Serializable> qRecordToApiMap(QRecord record, String tableName, String apiName, String apiVersion) throws QException
|
||||
{
|
||||
if(record == null)
|
||||
{
|
||||
return (null);
|
||||
}
|
||||
|
||||
List<QFieldMetaData> tableApiFields = getTableApiFieldList(new ApiNameVersionAndTableName(apiName, apiVersion, tableName));
|
||||
LinkedHashMap<String, Serializable> outputRecord = new LinkedHashMap<>();
|
||||
|
||||
|
Reference in New Issue
Block a user