We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d4085 commit 371a2c1Copy full SHA for 371a2c1
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/SecurityIndexManager.java
@@ -282,10 +282,10 @@ private static Set<String> getFileSettingsMetadataHandlerRoleMappingKeys(Cluster
282
283
private static Set<ExpressionRoleMapping> getRoleMappingMetadataMappings(ClusterState clusterState) {
284
RoleMappingMetadata roleMappingMetadata = RoleMappingMetadata.getFromClusterState(clusterState);
285
- if (roleMappingMetadata == null) {
286
- return Set.of();
+ if (roleMappingMetadata != null) {
+ return roleMappingMetadata.getRoleMappings();
287
}
288
- return roleMappingMetadata.getRoleMappings();
+ return Set.of();
289
290
291
@Override
0 commit comments