Fix dump ASSERTION_FAILED (#5190)

"Exists check" might be called for objects without `TADIR` entry (like `NSPC`). 

Regression of #4952 which removed the "if"

a72d3314cb (diff-4a3135e0f538157951fefdea06986dc644f6005a2af7f6917ff7f7f2f771f622L299)
This commit is contained in:
Marc Bernard 2021-12-08 20:50:37 -05:00 committed by GitHub
parent 1bed7ae318
commit 9e629475dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -799,6 +799,11 @@ CLASS zcl_abapgit_objects IMPLEMENTATION.
DATA: li_obj TYPE REF TO zif_abapgit_object.
" Might be called for objects without tadir entry
IF is_item IS INITIAL.
RETURN.
ENDIF.
" For unsupported objects, assume object exists
IF is_type_supported( is_item-obj_type ) = abap_false.
rv_bool = abap_true.