Skip to content

Commit 5b69a2f

Browse files
Add null check for possible NPE
1 parent b12b9c6 commit 5b69a2f

File tree

1 file changed

+3
-1
lines changed
  • components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/api/auth

1 file changed

+3
-1
lines changed

components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/api/auth/ApiAuthnHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ private AuthenticatorMetadata buildAuthenticatorMetadata(AuthenticatorData authe
131131
params.add(param);
132132
}
133133
authenticatorMetadata.setParams(params);
134-
authenticatorMetadata.setAdditionalData(getAdditionalData(authenticatorData.getAdditionalData()));
134+
if (authenticatorData.getAdditionalData() != null) {
135+
authenticatorMetadata.setAdditionalData(getAdditionalData(authenticatorData.getAdditionalData()));
136+
}
135137
}
136138
return authenticatorMetadata;
137139
}

0 commit comments

Comments
 (0)