Bugfix access deleted branch in news page

#834 
Bugfix access deleted branch in news abapgit page. When the news page try to access a branch that doesn't exist anymore in the remote we catch the belonging exception and return.
This commit is contained in:
Christian Guenter 2017-07-23 14:12:24 +00:00
parent 4c2b1a1d9c
commit 0728e9d915

View File

@ -112,8 +112,13 @@ CLASS lcl_news IMPLEMENTATION.
lv_last_seen = lcl_app=>user( )->get_repo_last_change_seen( lv_url ). lv_last_seen = lcl_app=>user( )->get_repo_last_change_seen( lv_url ).
" Find changelog TRY.
lt_remote = io_repo->get_files_remote( ). " Find changelog
lt_remote = io_repo->get_files_remote( ).
CATCH lcx_exception.
RETURN.
ENDTRY.
READ TABLE lt_remote ASSIGNING <file> READ TABLE lt_remote ASSIGNING <file>
WITH KEY path = lc_log_path filename = lc_log_filename. WITH KEY path = lc_log_path filename = lc_log_filename.