Skip to content

Commit 4cf5133

Browse files
committed
Address PR feedback
1 parent 0ea4362 commit 4cf5133

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

msal4j-sdk/src/main/java/com/microsoft/aad/msal4j/ClaimsRequest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ private static void parseClaims(JsonReader jsonReader, ClaimsRequest claimsReque
138138
}
139139

140140
jsonReader.nextToken();
141+
if (jsonReader.currentToken() == JsonToken.NULL) {
142+
return;
143+
}
144+
141145
if (jsonReader.currentToken() != JsonToken.START_OBJECT) {
142146
throw new IllegalStateException("Expected start of object but was " + jsonReader.currentToken());
143147
}

0 commit comments

Comments
 (0)