Skip to content

Commit 371a2c1

Browse files
committed
fixup!
1 parent f5d4085 commit 371a2c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/SecurityIndexManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@ private static Set<String> getFileSettingsMetadataHandlerRoleMappingKeys(Cluster
282282

283283
private static Set<ExpressionRoleMapping> getRoleMappingMetadataMappings(ClusterState clusterState) {
284284
RoleMappingMetadata roleMappingMetadata = RoleMappingMetadata.getFromClusterState(clusterState);
285-
if (roleMappingMetadata == null) {
286-
return Set.of();
285+
if (roleMappingMetadata != null) {
286+
return roleMappingMetadata.getRoleMappings();
287287
}
288-
return roleMappingMetadata.getRoleMappings();
288+
return Set.of();
289289
}
290290

291291
@Override

0 commit comments

Comments
 (0)