Avoid NPE and return w/ noop in performValidations if null (or empty) input records

This commit is contained in:
2024-08-01 15:02:06 -05:00
parent 26fc4fb4e0
commit 09c4d99612

View File

@ -227,6 +227,11 @@ public class InsertAction extends AbstractQActionFunction<InsertInput, InsertOut
*******************************************************************************/ *******************************************************************************/
public void performValidations(InsertInput insertInput, boolean isPreview) throws QException public void performValidations(InsertInput insertInput, boolean isPreview) throws QException
{ {
if(CollectionUtils.nullSafeIsEmpty(insertInput.getRecords()))
{
return;
}
QTableMetaData table = insertInput.getTable(); QTableMetaData table = insertInput.getTable();
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////