@@ -259,6 +259,24 @@ var _ = Describe("Claim Extractor Suite", func() {
259259 Expect(counter).To(BeEquivalentTo(1))
260260 })
261261
262+ It("GetClaim should not return an error with a non-nil empty ProfileURL", func() {
263+ claims, serverClose, err := newTestClaimExtractor(testClaimExtractorOpts{
264+ idTokenPayload: "{}",
265+ profileRequestHeaders: newAuthorizedHeader(),
266+ })
267+ Expect(err).ToNot(HaveOccurred())
268+ if serverClose != nil {
269+ defer serverClose()
270+ }
271+ // Set the ProfileURL to be empty, but not nil
272+ claims.(*claimExtractor).profileURL = &url.URL{}
273+
274+ value, exists, err := claims.GetClaim("user")
275+ Expect(err).ToNot(HaveOccurred())
276+ Expect(exists).To(BeFalse())
277+ Expect(value).To(BeNil())
278+ })
279+
262280 type getClaimIntoTableInput struct {
263281 testClaimExtractorOpts
264282 into interface{}