Skip to content

Commit

Permalink
Check for null (#20832)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoriceau authored Dec 22, 2022
1 parent 54377e4 commit 56c3a73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class OAuthPathExtractor {

public static Map<String, List<String>> extractOauthConfigurationPaths(final JsonNode configuration) {

if (configuration.has(PROPERTIES) && configuration.get(PROPERTIES).isObject()) {
if (configuration != null && configuration.has(PROPERTIES) && configuration.get(PROPERTIES).isObject()) {
final Map<String, List<String>> result = new HashMap<>();

configuration.get(PROPERTIES).fields().forEachRemaining(entry -> {
Expand Down

0 comments on commit 56c3a73

Please sign in to comment.