mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Patch: fix 'invalid filename' error if fn is empty
This commit is contained in:
parent
a8cb44d548
commit
1fc19f69d1
|
@ -528,7 +528,10 @@ CLASS zcl_abapgit_gui_page_patch IMPLEMENTATION.
|
||||||
lv_patched TYPE abap_bool,
|
lv_patched TYPE abap_bool,
|
||||||
lv_is_patch_possible TYPE abap_bool.
|
lv_is_patch_possible TYPE abap_bool.
|
||||||
|
|
||||||
lv_patched = get_diff_object( iv_filename )->is_line_patched( iv_index ).
|
" In case an object is falsely detected as changed, filename is empty and there's no diff object
|
||||||
|
IF iv_filename IS NOT INITIAL.
|
||||||
|
lv_patched = get_diff_object( iv_filename )->is_line_patched( iv_index ).
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
lv_is_patch_possible = is_patch_line_possible( is_diff_line ).
|
lv_is_patch_possible = is_patch_line_possible( is_diff_line ).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user