mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
CE-938 - avoid NPE in release if null input
This commit is contained in:
@ -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()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user