mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	【功能修复】工作流:新建的流程,部分数据的 NPE 问题
This commit is contained in:
		@@ -21,6 +21,7 @@ import org.flowable.engine.repository.ProcessDefinition;
 | 
			
		||||
import org.mapstruct.Mapper;
 | 
			
		||||
import org.mapstruct.factory.Mappers;
 | 
			
		||||
 | 
			
		||||
import java.util.Collections;
 | 
			
		||||
import java.util.List;
 | 
			
		||||
import java.util.Map;
 | 
			
		||||
 | 
			
		||||
@@ -101,7 +102,17 @@ public interface BpmModelConvert {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    default BpmModelMetaInfoVO parseMetaInfo(Model model) {
 | 
			
		||||
        return JsonUtils.parseObject(model.getMetaInfo(), BpmModelMetaInfoVO.class);
 | 
			
		||||
        BpmModelMetaInfoVO vo = JsonUtils.parseObject(model.getMetaInfo(), BpmModelMetaInfoVO.class);
 | 
			
		||||
        if (vo == null) {
 | 
			
		||||
            return null;
 | 
			
		||||
        }
 | 
			
		||||
        if (vo.getManagerUserIds() == null) {
 | 
			
		||||
            vo.setManagerUserIds(Collections.emptyList());
 | 
			
		||||
        }
 | 
			
		||||
        if (vo.getStartUserIds() == null) {
 | 
			
		||||
            vo.setStartUserIds(Collections.emptyList());
 | 
			
		||||
        }
 | 
			
		||||
        return vo;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user