mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Avoid NPE and return w/ noop in performValidations if null (or empty) input records
This commit is contained in:
@ -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();
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////
|
||||||
|
Reference in New Issue
Block a user