DEVC: Avoid dump when creating new package (#4419)

Usually, in abapGit packages are created by the folder logic already. But it dumps with "`li_package` is not assigned," if deserialize is used in other ways.

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Marc Bernard 2021-01-18 03:19:31 -05:00 committed by GitHub
parent 7e2d05a30b
commit 8ff0445673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -476,7 +476,9 @@ CLASS zcl_abapgit_object_devc IMPLEMENTATION.
" Swap out repository package name with the local installation package name
ls_package_data-devclass = mv_local_devclass.
ls_package_data-pdevclass = li_package->transport_layer.
IF li_package IS BOUND.
ls_package_data-pdevclass = li_package->transport_layer.
ENDIF.
" Parent package is not changed. Assume the folder logic already created the package and set
" the hierarchy before.