Ver código fonte

增加保护

huangtf 7 meses atrás
pai
commit
95aeb3ded3

+ 3 - 2
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/ArchiveAutoRuleSyncImpl.java

@@ -257,10 +257,11 @@ public class ArchiveAutoRuleSyncImpl {
                     //1.通过fromid找出项目级
                     ArchiveTreeVO2 proTreeVO2 = proMap.get(fromId);
                     //2.获取项目级groupID
-                    Long pro_groupId = proTreeVO2.getArchiveAutoGroupId();
-                    if (pro_groupId == null) {
+                    if (proTreeVO2 == null ||proTreeVO2.getArchiveAutoGroupId() == null) {
                         continue;
                     }
+                    Long pro_groupId = proTreeVO2.getArchiveAutoGroupId();
+
                     //3.,那么保存到集合  合同段ID_项目级groupID,客户级groupID
                     Long contractId = contractVO2.getContractId();
                     if (contractId != null) {