修复因parentResult和childResult未初始化导致的空指针异常
This commit is contained in:
parent
ddd8f8aceb
commit
fc8409134e
|
|
@ -17,6 +17,7 @@ import com.nflg.product.bomnew.util.VersionUtil;
|
|||
import lombok.Getter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
|
@ -30,10 +31,10 @@ public class PBomUpgrade {
|
|||
private List<BomNewPbomParentVO> allBom;
|
||||
|
||||
@Getter
|
||||
private List<BomNewPbomParentEntity> parentResult;
|
||||
private final List<BomNewPbomParentEntity> parentResult = new ArrayList<>();
|
||||
|
||||
@Getter
|
||||
private List<BomNewPbomChildEntity> childResult;
|
||||
private final List<BomNewPbomChildEntity> childResult = new ArrayList<>();
|
||||
|
||||
|
||||
public PBomUpgrade(BomNewPbomParentEntity root, List<BomNewPbomParentVO> allBom) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue