From 0728e9d915ce17e229afe75001fd97264be6337e Mon Sep 17 00:00:00 2001 From: Christian Guenter Date: Sun, 23 Jul 2017 14:12:24 +0000 Subject: [PATCH] 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. --- src/zabapgit_news.prog.abap | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/zabapgit_news.prog.abap b/src/zabapgit_news.prog.abap index 7a6f5a7d6..ceb19df72 100644 --- a/src/zabapgit_news.prog.abap +++ b/src/zabapgit_news.prog.abap @@ -112,8 +112,13 @@ CLASS lcl_news IMPLEMENTATION. lv_last_seen = lcl_app=>user( )->get_repo_last_change_seen( lv_url ). - " Find changelog - lt_remote = io_repo->get_files_remote( ). + TRY. + " Find changelog + lt_remote = io_repo->get_files_remote( ). + CATCH lcx_exception. + RETURN. + ENDTRY. + READ TABLE lt_remote ASSIGNING WITH KEY path = lc_log_path filename = lc_log_filename.