Skip to content

Commit ead82b6

Browse files
Fix attributes when no profile is present (#639)
The profile manager interface is badly designed and throws exceptions for normal situations, but for now we just treat the exception correctly - if no profile is there, no profile is active.
1 parent 5502440 commit ead82b6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/foundation/y_check_base.clas.abap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ CLASS Y_CHECK_BASE IMPLEMENTATION.
250250
DATA(profiles) = y_profile_manager=>create( )->select_profiles( sy-uname ).
251251
result = xsdbool( profiles IS NOT INITIAL ).
252252
CATCH ycx_entry_not_found.
253-
result = abap_true.
253+
result = abap_false.
254254
ENDTRY.
255255
ENDMETHOD.
256256

src/profiles/y_profile_manager.clas.abap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ CLASS y_profile_manager IMPLEMENTATION.
356356
LOOP AT result ASSIGNING FIELD-SYMBOL(<line>) WHERE username <> username AND is_standard = abap_true.
357357
<line>-username = username.
358358
ENDLOOP.
359-
UNASSIGN <line>.
360359
ENDMETHOD.
361360

362361

0 commit comments

Comments
 (0)