diff --git a/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewPbomExportToSAPImpl.java b/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewPbomExportToSAPImpl.java index 7ac63fc8..74c4a686 100644 --- a/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewPbomExportToSAPImpl.java +++ b/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewPbomExportToSAPImpl.java @@ -190,10 +190,10 @@ public class BomNewPbomExportToSAPImpl implements IBomNewPbomExportToSAP { children.add(convert(it, p.getMaterialNo(), ignore)); } BomNewPbomParentEntity cp = getParent(it); - if (!ignore && cp.getUserRootIs() == 1) { - ignore = true; - } if (Objects.nonNull(cp)) { + if (!ignore && cp.getUserRootIs() == 1) { + ignore = true; + } buildChildrenForSap(cRowId, cp, it, ignore); } }