diff --git a/inside-notices/src/main/java/cn/axzo/msg/center/message/service/impl/PendingMessageNewServiceImpl.java b/inside-notices/src/main/java/cn/axzo/msg/center/message/service/impl/PendingMessageNewServiceImpl.java index 0565df41..965c0522 100644 --- a/inside-notices/src/main/java/cn/axzo/msg/center/message/service/impl/PendingMessageNewServiceImpl.java +++ b/inside-notices/src/main/java/cn/axzo/msg/center/message/service/impl/PendingMessageNewServiceImpl.java @@ -927,11 +927,11 @@ public class PendingMessageNewServiceImpl implements PendingMessageNewService { private void buildPersonInfo(PendingMessageRecord record, PersonDTO promoter, PersonDTO executor, Long workspaceId) { IdentityDTO promoterIdentity = promoter.getIdentity(); IdentityDTO executorIdentity = executor.getIdentity(); - record.setPromoterId(promoterIdentity == null ? 0 : promoterIdentity.getId()); + record.setPromoterId(promoterIdentity == null || promoterIdentity.getId() == null ? 0 : promoterIdentity.getId()); record.setPromoterType(promoterIdentity == null ? IdentityTypeEnum.NOT_SUPPORT : promoterIdentity.getType()); record.setPromoterPersonId(promoter.getId()); record.setPromoterName(promoter.getName()); - record.setExecutorId(executorIdentity == null ? 0 : executorIdentity.getId()); + record.setExecutorId(executorIdentity == null || executorIdentity.getId() == null ? 0 : executorIdentity.getId()); record.setExecutorType(executorIdentity == null ? IdentityTypeEnum.NOT_SUPPORT : executorIdentity.getType()); record.setExecutorPersonId(executor.getId()); record.setExecutorName(executor.getName());