which can be null for some calls like
AssumeRoleWithWebIdentity in rgw_log.cc
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit
cdb716252e4c2d1e437fb0eb132334d2e5ce277d)
entry.op = op_name;
- entry.identity_type = s->auth.identity->get_identity_type();
+ if (s->auth.identity) {
+ entry.identity_type = s->auth.identity->get_identity_type();
+ } else {
+ entry.identity_type = TYPE_NONE;
+ }
if (! s->token_claims.empty()) {
entry.token_claims = std::move(s->token_claims);