yingp 5 tahun lalu
induk
melakukan
e92dc7e66e

+ 4 - 0
uas-office-qywx/src/main/java/com/usoftchina/uas/office/qywx/listener/UasProcessListener.java

@@ -66,6 +66,10 @@ public class UasProcessListener {
 
     private void sendProcessMessage(UasEvent event, Integer jpId) {
         JProcess process = Try.call(() -> jProcessService.getById(jpId), 10);
+        if (null == process) {
+            logger.warn("can not find process {}, {}", jpId, event);
+            return;
+        }
         Employee employee = getDealMan(process);
         if (null == employee) {
             return;