CE-938 - avoid NPE in release if null input

This commit is contained in:
2024-05-31 11:16:19 -05:00
parent 7c6c02ab28
commit 4508dea767

View File

@ -417,6 +417,12 @@ public class ProcessLockUtils
{
try
{
if(processLock == null)
{
LOG.debug("No process lock passed in to release - returning with noop");
return;
}
DeleteOutput deleteOutput = new DeleteAction().execute(new DeleteInput(ProcessLock.TABLE_NAME).withPrimaryKey(processLock.getId()));
if(CollectionUtils.nullSafeHasContents(deleteOutput.getRecordsWithErrors()))
{