diff --git a/CHANGELOG.md b/CHANGELOG.md index 78ca0916a..bad627a04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - adds a migrations to fix all statistic_sub_types of plans having label = nil - Fix a bug: unable to show wallet payment mean for avoir - updates spanish translations +- Fix a bug: avoids crash due to oidc config with scope = nil ## v6.3.0 2023 November 3 diff --git a/lib/provider_config.rb b/lib/provider_config.rb index 7d014e56f..df827d16f 100644 --- a/lib/provider_config.rb +++ b/lib/provider_config.rb @@ -20,7 +20,7 @@ class ProviderConfig (@config[:providable_attributes].keys.filter { |n| !n.start_with?('client__') && n != 'profile_url' }.map do |n| val = @config[:providable_attributes][n] - val.join(' ') if n == 'scope' + val&.join(' ') if n == 'scope' [n, val] end).push( ['client_options', @config[:providable_attributes].keys.filter { |n| n.start_with?('client__') }.to_h do |n|